Skip to content

DOC: generate docs for the Series.dt.isocalendar() method. #46674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/source/reference/series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ Datetime methods
:toctree: api/
:template: autosummary/accessor_method.rst

Series.dt.isocalendar
Series.dt.to_period
Series.dt.to_pydatetime
Series.dt.tz_localize
Expand Down
7 changes: 4 additions & 3 deletions pandas/core/indexes/accessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,13 @@ def isocalendar(self):
@property
def weekofyear(self):
"""
The week ordinal of the year.
The week ordinal of the year according to the ISO 8601 standard.

.. deprecated:: 1.1.0

Series.dt.weekofyear and Series.dt.week have been deprecated.
Please use Series.dt.isocalendar().week instead.
Series.dt.weekofyear and Series.dt.week have been deprecated. Please
call :func:`Series.dt.isocalendar` and access the ``week`` column
instead.
"""
warnings.warn(
"Series.dt.weekofyear and Series.dt.week have been deprecated. "
Expand Down