Skip to content

Commit 3550a24

Browse files
DOC: add SA01 for pandas.Timestamp.weekday
1 parent 593113a commit 3550a24

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
286286
-i "pandas.Timestamp.utcoffset SA01" \
287287
-i "pandas.Timestamp.utctimetuple SA01" \
288288
-i "pandas.Timestamp.value GL08" \
289-
-i "pandas.Timestamp.weekday SA01" \
290289
-i "pandas.Timestamp.year GL08" \
291290
-i "pandas.api.extensions.ExtensionArray._hash_pandas_object RT03,SA01" \
292291
-i "pandas.api.extensions.ExtensionArray._pad_or_backfill PR01,RT03,SA01" \

pandas/_libs/tslibs/nattype.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@ class NaTType(_NaT):
419419
420420
Monday == 0 ... Sunday == 6.
421421
422+
See Also
423+
--------
424+
Timestamp.dayofweek : Return the day of the week with Monday=0, Sunday=6.
425+
Timestamp.isoweekday : Return the day of the week with Monday=1, Sunday=7.
426+
datetime.date.weekday : Equivalent method in datetime module.
427+
422428
Examples
423429
--------
424430
>>> ts = pd.Timestamp('2023-01-01')

pandas/_libs/tslibs/timestamps.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -2752,6 +2752,12 @@ default 'raise'
27522752
27532753
Monday == 0 ... Sunday == 6.
27542754
2755+
See Also
2756+
--------
2757+
Timestamp.dayofweek : Return the day of the week with Monday=0, Sunday=6.
2758+
Timestamp.isoweekday : Return the day of the week with Monday=1, Sunday=7.
2759+
datetime.date.weekday : Equivalent method in datetime module.
2760+
27552761
Examples
27562762
--------
27572763
>>> ts = pd.Timestamp('2023-01-01')

0 commit comments

Comments
 (0)