Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dask/dask
/ count_nonzero
Function
count_nonzero
dask/array/routines.py:2176–2177 ·
view source on GitHub ↗
(a, axis=None)
Source
from the content-addressed store, hash-verified
2174
2175
@derived_from(np)
2176
def
count_nonzero(a, axis=None):
2177
return
isnonzero(asarray(a)).astype(np.intp).sum(axis=axis)
2178
2179
2180
@derived_from(np)
Callers
nothing calls this directly
Calls
4
asarray
Function · 0.90
isnonzero
Function · 0.85
sum
Method · 0.45
astype
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…