pandas.Series.to_period# Series.to_period(freq=None, copy=True)[source]# Convert Series from DatetimeIndex to PeriodIndex. Parameters freqstr, default NoneFrequency associated with the PeriodIndex. copybool, default TrueWhether or not to return a copy. Returns SeriesSeries with index converted to PeriodIndex.