MCPcopy Index your code
hub / github.com/dask/dask / clip

Method clip

dask/array/_array_expr/_collection.py:613–625  ·  view source on GitHub ↗

Return an array whose values are limited to ``[min, max]``. One of max or min must be given. Refer to :func:`dask.array.clip` for full documentation. See Also -------- dask.array.clip : equivalent function

(self, min=None, max=None)

Source from the content-addressed store, hash-verified

611 return conj(self)
612
613 def clip(self, min=None, max=None):
614 """Return an array whose values are limited to ``[min, max]``.
615 One of max or min must be given.
616
617 Refer to :func:`dask.array.clip` for full documentation.
618
619 See Also
620 --------
621 dask.array.clip : equivalent function
622 """
623 from dask.array._array_expr._ufunc import clip
624
625 return clip(self, min, max)
626
627 def __array_ufunc__(self, numpy_ufunc, method, *inputs, **kwargs):
628 out = kwargs.get("out", ())

Callers 2

test_arithmeticFunction · 0.45
test_clipFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_arithmeticFunction · 0.36
test_clipFunction · 0.36