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

Method mask

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

Source from the content-addressed store, hash-verified

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)]):
392 return MaskAlign(self, cond=cond, other=other)
393 return Mask(self, cond=cond, other=other)
394
395 def apply(self, function, *args, meta=None, **kwargs):
396 return Apply(self, function, args, meta, kwargs)

Callers 6

_convert_to_numericFunction · 0.45
test_mask_whereFunction · 0.45
test_where_maskFunction · 0.45

Calls 3

are_co_alignedFunction · 0.85
MaskAlignClass · 0.85
MaskClass · 0.85

Tested by 5

test_mask_whereFunction · 0.36
test_where_maskFunction · 0.36