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

Method setup

asv_bench/benchmarks/gil.py:177–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175
176class ParallelDatetimeFields:
177 def setup(self):
178 N = 10**6
179 self.dti = date_range("1900-01-01", periods=N, freq="min")
180 self.period = self.dti.to_period("D")
181
182 def time_datetime_field_year(self):
183 @run_parallel(num_threads=2)

Callers

nothing calls this directly

Calls 2

date_rangeFunction · 0.90
to_periodMethod · 0.45

Tested by

no test coverage detected