Series.
to_period
Convert Series from DatetimeIndex to PeriodIndex with desired frequency (inferred from index if not passed).
Frequency associated with the PeriodIndex.
Whether or not to return a copy.
Series with index converted to PeriodIndex.