MCPcopy Create free account
hub / github.com/dask/dask / nonzero

Method nonzero

dask/array/core.py:2997–3008  ·  view source on GitHub ↗

Return the indices of the elements that are non-zero. Refer to :func:`dask.array.nonzero` for full documentation. See Also -------- dask.array.nonzero : equivalent function

(self)

Source from the content-addressed store, hash-verified

2995 return repeat(self, repeats, axis=axis)
2996
2997 def nonzero(self):
2998 """Return the indices of the elements that are non-zero.
2999
3000 Refer to :func:`dask.array.nonzero` for full documentation.
3001
3002 See Also
3003 --------
3004 dask.array.nonzero : equivalent function
3005 """
3006 from dask.array.routines import nonzero
3007
3008 return nonzero(self)
3009
3010 def to_zarr(self, *args, **kwargs):
3011 """Save array to the zarr storage format

Callers 8

_sort_mixedFunction · 0.80
sanitize_indexFunction · 0.80
_vindex_arrayFunction · 0.80
test_nonzeroFunction · 0.80
test_nonzero_methodFunction · 0.80
test_nonzeroFunction · 0.80

Calls 1

nonzeroFunction · 0.90

Tested by 5

test_nonzeroFunction · 0.64
test_nonzero_methodFunction · 0.64
test_nonzeroFunction · 0.64