(self, cond, other=np.nan)
| 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): |
no test coverage detected