(self, inplace)
| 45 | self.df = pd.DataFrame({"A": 0, "B": 0}, index=range(10**7)) |
| 46 | |
| 47 | def time_replace_list(self, inplace): |
| 48 | self.df.replace([np.inf, -np.inf], np.nan, inplace=inplace) |
| 49 | |
| 50 | def time_replace_list_one_match(self, inplace): |
| 51 | # the 1 can be held in self._df.blocks[0], while the inf and -inf can't |