Skip to content

Commit

Permalink
DOC: add SA01 for pandas.Timestamp.isocalendar (#58763)
Browse files Browse the repository at this point in the history
* DOC: add SA01 for pandas.Timestamp.isocalendar

* DOC: remove SA01 for pandas.Timestamp.isocalendar
  • Loading branch information
tuhinsharma121 committed May 18, 2024
1 parent a3e751c commit 74ca7cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.fromordinal SA01" \
-i "pandas.Timestamp.fromtimestamp PR01,SA01" \
-i "pandas.Timestamp.hour GL08" \
-i "pandas.Timestamp.isocalendar SA01" \
-i "pandas.Timestamp.isoweekday SA01" \
-i "pandas.Timestamp.max PR02" \
-i "pandas.Timestamp.microsecond GL08" \
Expand Down
6 changes: 6 additions & 0 deletions pandas/_libs/tslibs/nattype.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,12 @@ class NaTType(_NaT):
"""
Return a named tuple containing ISO year, week number, and weekday.
See Also
--------
DatetimeIndex.isocalendar : Return a 3-tuple containing ISO year,
week number, and weekday for the given DatetimeIndex object.
datetime.date.isocalendar : The equivalent method for `datetime.date` objects.
Examples
--------
>>> ts = pd.Timestamp('2023-01-01 10:00:00')
Expand Down
6 changes: 6 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,12 @@ class Timestamp(_Timestamp):
"""
Return a named tuple containing ISO year, week number, and weekday.
See Also
--------
DatetimeIndex.isocalendar : Return a 3-tuple containing ISO year,
week number, and weekday for the given DatetimeIndex object.
datetime.date.isocalendar : The equivalent method for `datetime.date` objects.
Examples
--------
>>> ts = pd.Timestamp('2023-01-01 10:00:00')
Expand Down

0 comments on commit 74ca7cd

Please sign in to comment.