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

Method setup

asv_bench/benchmarks/period.py:65–76  ·  view source on GitHub ↗
(self, typ)

Source from the content-addressed store, hash-verified

63 param_names = ["typ"]
64
65 def setup(self, typ):
66 data = [
67 Period("2011-01", freq="M"),
68 Period("2011-02", freq="M"),
69 Period("2011-03", freq="M"),
70 Period("2011-04", freq="M"),
71 ]
72
73 if typ == "index":
74 self.vector = PeriodIndex(data * 1000, freq="M")
75 elif typ == "series":
76 self.vector = Series(data * 1000)
77
78 def time_drop_duplicates(self, typ):
79 self.vector.drop_duplicates()

Callers

nothing calls this directly

Calls 2

PeriodIndexClass · 0.90
SeriesClass · 0.90

Tested by

no test coverage detected