From 9461b8c8004a1b8b8ac1539939da66d8d16a35d1 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Wed, 8 May 2024 19:33:02 +0530 Subject: [PATCH 1/3] DOC: add SA01 for pandas.Series.dt.daysinmonth --- pandas/core/arrays/datetimes.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 8747f795bebd8..3961b0a7672f4 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1913,6 +1913,15 @@ def isocalendar(self) -> DataFrame: """ The number of days in the month. + See Also + -------- + Series.dt.day : Return the day of the month. + Series.dt.is_month_end : Return a boolean indicating if the + date is the last day of the month. + Series.dt.is_month_start : Return a boolean indicating if the + date is the first day of the month. + Series.dt.month : Return the month as January=1 through December=12. + Examples -------- >>> s = pd.Series(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"]) From 8ae70d2cd6ebaa83adb9abf7b6a05554ad8aaeae Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Wed, 8 May 2024 19:33:55 +0530 Subject: [PATCH 2/3] DOC: remove SA01 for pandas.Series.dt.daysinmonth --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f34f0690196ed..9c052f8b9116f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -165,7 +165,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.dt.components SA01" \ -i "pandas.Series.dt.day_name PR01,PR02" \ -i "pandas.Series.dt.days_in_month SA01" \ - -i "pandas.Series.dt.daysinmonth SA01" \ -i "pandas.Series.dt.floor PR01,PR02" \ -i "pandas.Series.dt.freq GL08" \ -i "pandas.Series.dt.microseconds SA01" \ From 4fb7c5ffbca8c1a12ceb288e9d2c674635d754f0 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Wed, 8 May 2024 21:35:16 +0530 Subject: [PATCH 3/3] DOC: remove SA01 for pandas.Series.dt.days_in_month --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9c052f8b9116f..6a58d701a6a28 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -164,7 +164,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.dt.ceil PR01,PR02" \ -i "pandas.Series.dt.components SA01" \ -i "pandas.Series.dt.day_name PR01,PR02" \ - -i "pandas.Series.dt.days_in_month SA01" \ -i "pandas.Series.dt.floor PR01,PR02" \ -i "pandas.Series.dt.freq GL08" \ -i "pandas.Series.dt.microseconds SA01" \