Series.
to_period
Convert Series from DatetimeIndex to PeriodIndex.
Frequency associated with the PeriodIndex.
Whether or not to return a copy.
Series with index converted to PeriodIndex.