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

Method clip

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

Source from the content-addressed store, hash-verified

2881
2882 @derived_from(pd.DataFrame)
2883 def clip(self, lower=None, upper=None, axis=None, **kwargs):
2884 axis = self._validate_axis(axis)
2885 if axis == 1:
2886 return self.map_partitions(M.clip, lower, upper, axis=axis)
2887 return new_collection(self.expr.clip(lower, upper, axis))
2888
2889 def merge(
2890 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