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

Method mask

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

Source from the content-addressed store, hash-verified

2015
2016 @derived_from(pd.DataFrame)
2017 def mask(self, cond, other=np.nan):
2018 cond = self._create_alignable_frame(cond)
2019 other = self._create_alignable_frame(other)
2020 cond = cond.expr if isinstance(cond, FrameBase) else cond
2021 other = other.expr if isinstance(other, FrameBase) else other
2022 return new_collection(self.expr.mask(cond, other))
2023
2024 @derived_from(pd.DataFrame)
2025 def replace(self, to_replace=None, value=no_default, regex=False):

Callers

nothing calls this directly

Calls 2

new_collectionFunction · 0.90

Tested by

no test coverage detected