get the abs of data except np.nan.
(self)
| 444 | return self.__class__(~self.data.astype(bool), *self.indices) |
| 445 | |
| 446 | def abs(self): |
| 447 | """get the abs of data except np.nan.""" |
| 448 | tmp_data = np.absolute(self.data) |
| 449 | return self.__class__(tmp_data, *self.indices) |
| 450 | |
| 451 | def replace(self, to_replace: Dict[np.number, np.number]): |
| 452 | assert isinstance(to_replace, dict) |
no outgoing calls