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

Method where

dask/dataframe/dask_expr/_expr.py:385–388  ·  view source on GitHub ↗
(self, cond, other=np.nan)

Source from the content-addressed store, hash-verified

383 return Round(self, decimals=decimals)
384
385 def where(self, cond, other=np.nan):
386 if not are_co_aligned(self, *[c for c in [cond, other] if isinstance(c, Expr)]):
387 return WhereAlign(self, cond=cond, other=other)
388 return Where(self, cond=cond, other=other)
389
390 def mask(self, cond, other=np.nan):
391 if not are_co_aligned(self, *[c for c in [cond, other] if isinstance(c, Expr)]):

Callers 15

makeMissingDataFrameFunction · 0.45
_cov_corr_combineFunction · 0.45
_cov_corr_aggFunction · 0.45
cummin_aggregateFunction · 0.45
cummax_aggregateFunction · 0.45
sumMethod · 0.45
prodMethod · 0.45
test_mask_whereFunction · 0.45
read_sql_queryFunction · 0.45
test_queryFunction · 0.45
test_where_maskFunction · 0.45

Calls 3

are_co_alignedFunction · 0.85
WhereAlignClass · 0.85
WhereClass · 0.85

Tested by 15

test_mask_whereFunction · 0.36
test_queryFunction · 0.36
test_where_maskFunction · 0.36
test_mask_where_callableFunction · 0.36
test_whereFunction · 0.36
test_where_scalar_dtypeFunction · 0.36
test_where_nonzeroFunction · 0.36