Skip to content

Commit 8ec6ed5

Browse files
committed
PERF: benchmark to_datetime quarter parsing
1 parent 28c4e7a commit 8ec6ed5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

asv_bench/benchmarks/timeseries.py

+9
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,15 @@ def time_different_offset(self):
342342
to_datetime(self.diff_offset)
343343

344344

345+
class ToDatetimeFormatQuarters(object):
346+
347+
def setup(self):
348+
self.s = Series(['2Q2005', '2Q05', '2005Q1', '05Q1'] * 10000)
349+
350+
def time_infer_quarter(self):
351+
to_datetime(self.s)
352+
353+
345354
class ToDatetimeFormat(object):
346355

347356
def setup(self):

0 commit comments

Comments
 (0)