Skip to content

Commit 613a522

Browse files
committed
DOC: added note about using np.isnan
1 parent c2080f2 commit 613a522

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

larray/core/array.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,8 @@ def describe(self, *args, percentiles=None) -> 'Array':
17011701
# ...
17021702
# }, 'statistic')
17031703
return stack({
1704+
# Note that np.isnan works as well as la.isnan thanks to __array_wrap__
1705+
# and using it avoids having a cyclic import
17041706
'count': (~np.isnan(self)).sum(*args),
17051707
'mean': self.mean(*args),
17061708
'std': self.std(*args),

0 commit comments

Comments
 (0)