pandas.Series.to_period
- Series.to_period(freq=None, copy=True)[source]
-
Преобразование Series из DatetimeIndex в PeriodIndex.
- Параметры
-
- freq:строка, по умолчанию None
-
Частота, связанная с PeriodIndex.
- copy:bool, по умолчанию True
-
Возвращать копию или нет.
- Возвращает
-
- Series
-
Series с индексом, преобразованным в PeriodIndex.
© 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.5.0/reference/api/pandas.Series.to_period.html