[Numpy-discussion] Help with np.where and datetime functions
Wed Jul 8 19:05:39 CDT 2009
> Also, if you don't need the indices, you can just use the conditional
> expression as a boolean mask:
>>>> condition = (t1 < Y[:,0]) & (Y[:,0] < t2)
'condition' is not an index array? Wouldn't it just be the indices as well?
Would it be possible to do this:
Y[:,0][ (t1 < Y[:,0]) & (Y[:,0] < t2) ]
I guess that IS what you're saying to do above, but I'm confused what
'condition' would be once returned... (I'll go play in the sandbox now...)
View this message in context: http://www.nabble.com/Help-with-np.where-and-datetime-functions-tp24389447p24401626.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.
More information about the NumPy-Discussion