Convert Period to desired frequency, at the start or end of the interval.
The desired frequency. If passing a str, it needs to be a valid period alias.
Start or end of the timespan.
Examples
>>> period = pd.Period('2023-1-1', freq='D')
>>> period.asfreq('h')
Period('2023-01-01 23:00', 'h')
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Period.asfreq.html