Skip to content

Commit 1c5a2ab

Browse files
committed
Added asv benchmark for Period, PeriodIndex
1 parent 8bcfd57 commit 1c5a2ab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

asv_bench/benchmarks/period.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from pandas import Period, PeriodIndex, date_range
2+
3+
4+
class create_period_index_from_date_range(object):
5+
goal_time = 0.2
6+
7+
def time_period_index(self):
8+
# Simulate irregular PeriodIndex
9+
PeriodIndex(date_range('1985', periods=10000).to_pydatetime(), freq='D')

0 commit comments

Comments
 (0)