(self, cond, other=np.nan)
| 1967 | |
| 1968 | @derived_from(pd.DataFrame) |
| 1969 | def where(self, cond, other=np.nan): |
| 1970 | cond = self._create_alignable_frame(cond) |
| 1971 | other = self._create_alignable_frame(other) |
| 1972 | cond = cond.expr if isinstance(cond, FrameBase) else cond |
| 1973 | other = other.expr if isinstance(other, FrameBase) else other |
| 1974 | return new_collection(self.expr.where(cond, other)) |
| 1975 | |
| 1976 | @derived_from(pd.DataFrame) |
| 1977 | def mask(self, cond, other=np.nan): |
no test coverage detected