MCPcopy
hub / github.com/pandas-dev/pandas / time_replace_list

Method time_replace_list

asv_bench/benchmarks/replace.py:47–48  ·  view source on GitHub ↗
(self, inplace)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected