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

Method setup

asv_bench/benchmarks/series_methods.py:61–69  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

59 param_names = ["dtype"]
60
61 def setup(self, dtype):
62 N = 10**6
63 data = {
64 "int": np.random.randint(1, 10, N),
65 "datetime": date_range("2000-01-01", freq="s", periods=N),
66 }
67 self.s = Series(data[dtype])
68 if dtype == "datetime":
69 self.s[np.random.randint(1, N, 100)] = NaT
70
71 def time_dropna(self, dtype):
72 self.s.dropna()

Callers

nothing calls this directly

Calls 2

date_rangeFunction · 0.90
SeriesClass · 0.90

Tested by

no test coverage detected