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

Method clip

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

2854 return conj(self)
2855
2856 def clip(self, min=None, max=None):
2857 """Return an array whose values are limited to ``[min, max]``.
2858 One of max or min must be given.
2859
2860 Refer to :func:`dask.array.clip` for full documentation.
2861
2862 See Also
2863 --------
2864 dask.array.clip : equivalent function
2865 """
2866 from dask.array.ufunc import clip
2867
2868 return clip(self, min, max)
2869
2870 def view(self, dtype=None, order="C"):
2871 """Get a view of the array as a new data type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected