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

Method setup

asv_bench/benchmarks/series_methods.py:15–21  ·  asv_bench/benchmarks/series_methods.py::SeriesConstructor.setup
(self)

Source from the content-addressed store, hash-verified

13
14class SeriesConstructor:
15 def setup(self):
16 self.idx = date_range(
17 start=datetime(2015, 10, 26), end=datetime(2016, 1, 1), freq=class="st">"50s"
18 )
19 self.data = dict(zip(self.idx, range(len(self.idx)), strict=True))
20 self.array = np.array([1, 2, 3])
21 self.idx2 = Index([class="st">"a", class="st">"b", class="st">"c"])
22
23 def time_constructor_dict(self):
24 Series(data=self.data, index=self.idx)

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
IndexClass · 0.90
arrayMethod · 0.45

Tested by

no test coverage detected