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

Method nonzero

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

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