Skip to content

Commit

Permalink
DOC: add SA01 for pandas.Timestamp.weekday (#58781)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 committed May 19, 2024
1 parent 15ca0df commit f32a8cd
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 @@ -286,7 +286,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.utcoffset SA01" \
-i "pandas.Timestamp.utctimetuple SA01" \
-i "pandas.Timestamp.value GL08" \
-i "pandas.Timestamp.weekday SA01" \
-i "pandas.Timestamp.year GL08" \
-i "pandas.api.extensions.ExtensionArray._pad_or_backfill PR01,RT03,SA01" \
-i "pandas.api.extensions.ExtensionArray._reduce RT03,SA01" \
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 @@ -419,6 +419,12 @@ class NaTType(_NaT):
Monday == 0 ... Sunday == 6.
See Also
--------
Timestamp.dayofweek : Return the day of the week with Monday=0, Sunday=6.
Timestamp.isoweekday : Return the day of the week with Monday=1, Sunday=7.
datetime.date.weekday : Equivalent method in datetime module.
Examples
--------
>>> ts = pd.Timestamp('2023-01-01')
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 @@ -2752,6 +2752,12 @@ default 'raise'
Monday == 0 ... Sunday == 6.
See Also
--------
Timestamp.dayofweek : Return the day of the week with Monday=0, Sunday=6.
Timestamp.isoweekday : Return the day of the week with Monday=1, Sunday=7.
datetime.date.weekday : Equivalent method in datetime module.
Examples
--------
>>> ts = pd.Timestamp('2023-01-01')
Expand Down

0 comments on commit f32a8cd

Please sign in to comment.