pandas.DatetimeIndex.to_period

DatetimeIndex.to_period(freq=None)[source]

Cast to PeriodIndex at a particular frequency