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

Method setup

asv_bench/benchmarks/inference.py:161–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159
160class ToDatetimeISO8601:
161 def setup(self):
162 rng = date_range(start="1/1/2000", periods=20000, freq="h")
163 self.strings = rng.strftime("%Y-%m-%d %H:%M:%S").tolist()
164 self.strings_nosep = rng.strftime("%Y%m%d %H:%M:%S").tolist()
165 self.strings_tz_space = [
166 x.strftime("%Y-%m-%d %H:%M:%S") + " -0800" for x in rng
167 ]
168 self.strings_zero_tz = [x.strftime("%Y-%m-%d %H:%M:%S") + "Z" for x in rng]
169
170 def time_iso8601(self):
171 to_datetime(self.strings)

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
tolistMethod · 0.45
strftimeMethod · 0.45

Tested by

no test coverage detected