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

Method setup

asv_bench/benchmarks/series_methods.py:191–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189
190class ClipDt:
191 def setup(self):
192 dr = date_range("20220101", periods=100_000, freq="s", tz="UTC")
193 self.clipper_dt = dr[0:1_000].repeat(100)
194 self.s = Series(dr)
195
196 def time_clip(self):
197 self.s.clip(upper=self.clipper_dt)

Callers

nothing calls this directly

Calls 3

date_rangeFunction · 0.90
SeriesClass · 0.90
repeatMethod · 0.45

Tested by

no test coverage detected