Count the number of non-NA in this array along the given axis or axes
(data, axis=None)
| 389 | |
| 390 | |
| 391 | def count(data, axis=None): |
| 392 | """Count the number of non-NA in this array along the given axis or axes""" |
| 393 | xp = get_array_namespace(data) |
| 394 | return xp.sum(xp.logical_not(isnull(data)), axis=axis) |
| 395 | |
| 396 | |
| 397 | def sum_where(data, axis=None, dtype=None, where=None): |
searching dependent graphs…