pandas.Series.dt.to_period

Series.dt.to_period(*args, **kwargs)

Cast to PeriodIndex at a particular frequency