diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b3d6c5156c54d..117fdc8a28bf7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -328,9 +328,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.utcoffset SA01" \ -i "pandas.Timestamp.utctimetuple SA01" \ -i "pandas.Timestamp.value GL08" \ - -i "pandas.Timestamp.week SA01" \ -i "pandas.Timestamp.weekday SA01" \ - -i "pandas.Timestamp.weekofyear SA01" \ -i "pandas.Timestamp.year GL08" \ -i "pandas.api.extensions.ExtensionArray._from_sequence_of_strings SA01" \ -i "pandas.api.extensions.ExtensionArray._hash_pandas_object RT03,SA01" \ diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 0010497425c02..f5519569702b6 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -902,6 +902,11 @@ cdef class _Timestamp(ABCTimestamp): ------- int + See Also + -------- + Timestamp.weekday : Return the day of the week. + Timestamp.quarter : Return the quarter of the year. + Examples -------- >>> ts = pd.Timestamp(2020, 3, 14)