[SciPy-User] [SciPy-user] Matching up arrays?

Jose Gomez-Dans jgomezdans at gmail.com
Fri Nov 19 06:18:11 EST 2010


Hi,

On 19 November 2010 05:58, mdekauwe <mdekauwe at gmail.com> wrote:

>
> Hi,
>
> So I have 2 arrays which hold some data and for each array I have an array
> with the associated date stamp. The dates vary between arrays, so what I
> would like to be able to do is just subset the data so I end up with two
> arrays if there is a matching time stamp between arrays (with the idea
> being
> I would do some comparative stats on these arrays).


You can use the python sets module (<
http://en.wikibooks.org/wiki/Python_Programming/Sets>
An example of how it would work on your example looks like this:

<http://gist.github.com/706378>

Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20101119/a6199d62/attachment.html>


More information about the SciPy-User mailing list