[Numpy-discussion] Finding indices for all rows which contain nan (or anything else)
Webb Sprague
webb.sprague at gmail.com
Thu Jul 13 16:02:13 EDT 2006
On 7/13/06, Robert Kern <robert.kern at gmail.com> wrote:
> Webb Sprague wrote:
> > Does anyone have some vectorized code that pulls out all the row
>
> def is_row_nan(a):
> return numpy.isnan(a).any(axis=-1)
I knew there was a way, but I didn't know to check any() and all().
Thanks to all (I love free software lists!)
W
More information about the NumPy-Discussion
mailing list