From 06e5aea095776c0a2e1cd4ed904865db67ea3aac Mon Sep 17 00:00:00 2001 From: abonte <6319051+abonte@users.noreply.github.com> Date: Sat, 11 May 2024 16:16:04 +0200 Subject: [PATCH 1/3] DOC: add SA01 to Timestamp.week --- pandas/_libs/tslibs/timestamps.pyx | 5 +++++ 1 file changed, 5 insertions(+) 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) From 0520cc2e066d8ca7337b37bba878697de69febb7 Mon Sep 17 00:00:00 2001 From: abonte <6319051+abonte@users.noreply.github.com> Date: Sat, 11 May 2024 16:21:02 +0200 Subject: [PATCH 2/3] remove from code_checks --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b3d6c5156c54d..4c9225345a5e0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -328,7 +328,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.week SA01" \ -i "pandas.Timestamp.weekday SA01" \ -i "pandas.Timestamp.weekofyear SA01" \ -i "pandas.Timestamp.year GL08" \ From 9a54cfcce853b46c9a7f87e094694d3f6f323456 Mon Sep 17 00:00:00 2001 From: abonte <6319051+abonte@users.noreply.github.com> Date: Sat, 11 May 2024 16:46:53 +0200 Subject: [PATCH 3/3] remove weekofyear alias from code_checks --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 4c9225345a5e0..117fdc8a28bf7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -329,7 +329,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Timestamp.utctimetuple SA01" \ -i "pandas.Timestamp.value GL08" \ -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" \