Skip to content

Commit a5a4cf0

Browse files
committed
fix asv
1 parent 6a8bedf commit a5a4cf0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

asv_bench/benchmarks/tslibs/offsets.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,8 @@ def setup(self, offset):
7171
self.date = datetime(2011, 1, 1)
7272
self.dt64 = np.datetime64("2011-01-01 09:00Z")
7373

74-
def time_apply(self, offset):
75-
offset.apply(self.date)
76-
77-
def time_apply_np_dt64(self, offset):
78-
offset.apply(self.dt64)
74+
def time_add_np_dt64(self, offset):
75+
offset + self.dt64
7976

8077
def time_add(self, offset):
8178
self.date + offset

0 commit comments

Comments
 (0)