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

Method where

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

Source from the content-addressed store, hash-verified

2007
2008 @derived_from(pd.DataFrame)
2009 def where(self, cond, other=np.nan):
2010 cond = self._create_alignable_frame(cond)
2011 other = self._create_alignable_frame(other)
2012 cond = cond.expr if isinstance(cond, FrameBase) else cond
2013 other = other.expr if isinstance(other, FrameBase) else other
2014 return new_collection(self.expr.where(cond, other))
2015
2016 @derived_from(pd.DataFrame)
2017 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