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

Method where

dask/dataframe/dask_expr/_collection.py:1975–1980  ·  view source on GitHub ↗
(self, cond, other=np.nan)

Source from the content-addressed store, hash-verified

1973
1974 @derived_from(pd.DataFrame)
1975 def where(self, cond, other=np.nan):
1976 cond = self._create_alignable_frame(cond)
1977 other = self._create_alignable_frame(other)
1978 cond = cond.expr if isinstance(cond, FrameBase) else cond
1979 other = other.expr if isinstance(other, FrameBase) else other
1980 return new_collection(self.expr.where(cond, other))
1981
1982 @derived_from(pd.DataFrame)
1983 def mask(self, cond, other=np.nan):

Callers 2

_apply_min_countMethod · 0.45
__setitem__Method · 0.45

Calls 2

new_collectionFunction · 0.90

Tested by

no test coverage detected