Skip to content

Commit 66c300b

Browse files
authored
DOC: generate docs for the Series.dt.isocalendar() method. (#46674)
1 parent 40e9cbe commit 66c300b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/source/reference/series.rst

+1
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ Datetime methods
342342
:toctree: api/
343343
:template: autosummary/accessor_method.rst
344344

345+
Series.dt.isocalendar
345346
Series.dt.to_period
346347
Series.dt.to_pydatetime
347348
Series.dt.tz_localize

pandas/core/indexes/accessors.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,13 @@ def isocalendar(self):
277277
@property
278278
def weekofyear(self):
279279
"""
280-
The week ordinal of the year.
280+
The week ordinal of the year according to the ISO 8601 standard.
281281
282282
.. deprecated:: 1.1.0
283283
284-
Series.dt.weekofyear and Series.dt.week have been deprecated.
285-
Please use Series.dt.isocalendar().week instead.
284+
Series.dt.weekofyear and Series.dt.week have been deprecated. Please
285+
call :func:`Series.dt.isocalendar` and access the ``week`` column
286+
instead.
286287
"""
287288
warnings.warn(
288289
"Series.dt.weekofyear and Series.dt.week have been deprecated. "

0 commit comments

Comments
 (0)