pandas / 1.4.0 / reference / api / pandas.periodindex.to_timestamp.html /

pandas.PeriodIndex.to_timestamp

PeriodIndex. to_timestamp ( freq=None, how='start' ) [source]

Cast to DatetimeArray/Index.

Parameters
freq :str or DateOffset, optional

Target frequency. The default is ‘D’ for week or longer, ‘S’ otherwise.

how :{‘s’, ‘e’, ‘start’, ‘end’}

Whether to use the start or end of the time period being converted.

Returns
DatetimeArray/Index

© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.4.0/reference/api/pandas.PeriodIndex.to_timestamp.html