Spec-Zone.ru › pandas 0.25

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API