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

Method clip

dask/dataframe/dask_expr/_collection.py:2847–2851  ·  view source on GitHub ↗
(self, lower=None, upper=None, axis=None, **kwargs)

Source from the content-addressed store, hash-verified

2845
2846 @derived_from(pd.DataFrame)
2847 def clip(self, lower=None, upper=None, axis=None, **kwargs):
2848 axis = self._validate_axis(axis)
2849 if axis == 1:
2850 return self.map_partitions(M.clip, lower, upper, axis=axis)
2851 return new_collection(self.expr.clip(lower, upper, axis))
2852
2853 def merge(
2854 self,

Callers 3

test_clipFunction · 0.95
test_clip_axis_0Function · 0.95
test_clip_axis_1Function · 0.95

Calls 4

_validate_axisMethod · 0.95
new_collectionFunction · 0.90
map_partitionsMethod · 0.45
clipMethod · 0.45

Tested by 3

test_clipFunction · 0.76
test_clip_axis_0Function · 0.76
test_clip_axis_1Function · 0.76