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