Convert Period to desired frequency, at the start or end of the interval.
The desired frequency.
Start or end of the timespan.
previous
pandas.Period.year
next
pandas.Period.now