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

Method nonzero

dask/array/core.py:2989–3000  ·  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

2987 return repeat(self, repeats, axis=axis)
2988
2989 def nonzero(self):
2990 """Return the indices of the elements that are non-zero.
2991
2992 Refer to :func:`dask.array.nonzero` for full documentation.
2993
2994 See Also
2995 --------
2996 dask.array.nonzero : equivalent function
2997 """
2998 from dask.array.routines import nonzero
2999
3000 return nonzero(self)
3001
3002 def to_zarr(self, *args, **kwargs):
3003 """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