Skip to content

Commit

Permalink
DOC: add SA01 for pandas.Timestamp.isoweekday (#59341)
Browse files Browse the repository at this point in the history
add SA01 for pandas.Timestamp.isoweekday
  • Loading branch information
CaesarTY authored Jul 29, 2024
1 parent dd28adb commit c8bdce9
Show file tree
Hide file tree
Showing 3 changed files with 14 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 @@ -223,7 +223,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.isoweekday SA01" \
-i "pandas.Timestamp.max PR02" \
-i "pandas.Timestamp.microsecond GL08" \
-i "pandas.Timestamp.min PR02" \
Expand Down
7 changes: 7 additions & 0 deletions pandas/_libs/tslibs/nattype.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,13 @@ class NaTType(_NaT):
Monday == 1 ... Sunday == 7.
See Also
--------
Timestamp.weekday : Return the day of the week with Monday=0, Sunday=6.
Timestamp.isocalendar : Return a tuple containing ISO year, week number
and weekday.
datetime.date.isoweekday : Equivalent method in datetime module.
Examples
--------
>>> ts = pd.Timestamp('2023-01-01 10:00:00')
Expand Down
7 changes: 7 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2775,6 +2775,13 @@ default 'raise'
Monday == 1 ... Sunday == 7.
See Also
--------
Timestamp.weekday : Return the day of the week with Monday=0, Sunday=6.
Timestamp.isocalendar : Return a tuple containing ISO year, week number
and weekday.
datetime.date.isoweekday : Equivalent method in datetime module.
Examples
--------
>>> ts = pd.Timestamp('2023-01-01 10:00:00')
Expand Down

0 comments on commit c8bdce9

Please sign in to comment.