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

Method setup

asv_bench/benchmarks/join_merge.py:574–581  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

572
573class Align:
574 def setup(self):
575 size = 5 * 10**5
576 rng = np.arange(0, 10**13, 10**7)
577 stamps = np.datetime64("now").view("i8") + rng
578 idx1 = np.sort(np.random.choice(stamps, size, replace=False))
579 idx2 = np.sort(np.random.choice(stamps, size, replace=False))
580 self.ts1 = Series(np.random.randn(size), idx1)
581 self.ts2 = Series(np.random.randn(size), idx2)
582
583 def time_series_align_int64_index(self):
584 self.ts1 + self.ts2

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
viewMethod · 0.45

Tested by

no test coverage detected