Skip to content

Commit a3f42df

Browse files
committed
fix typo in added benchmark
1 parent 1aa7bb2 commit a3f42df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

asv_bench/benchmarks/timeseries.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,17 @@ def time_lookup_and_cleanup(self):
265265

266266
class ToDatetimeFromIntsFloats:
267267
def setup(self):
268-
timestamp_seconds_int = Series(range(1521080307, 1521685107), dtype="int64")
269-
timestamp_seconds_float = timestamp_seconds_int.astype("float64")
268+
self.timestamp_seconds_int = Series(
269+
range(1521080307, 1521685107), dtype="int64"
270+
)
271+
self.timestamp_seconds_float = timestamp_seconds_int.astype("float64")
270272

271273
def to_datetime_int(self):
272-
to_datetime(timestamp_seconds_int, unit="s")
274+
to_datetime(self.timestamp_seconds_int, unit="s")
273275

274276
# float64 should about the same as int64
275277
def to_datetime_float(self):
276-
to_datetime(timestamp_seconds_float, unit="s")
278+
to_datetime(self.timestamp_seconds_float, unit="s")
277279

278280

279281
class ToDatetimeYYYYMMDD:

0 commit comments

Comments
 (0)