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