Skip to content

Commit 983568c

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.Series.dt.daysinmonth and pandas.Series.dt.days_in_month (#58637)
* DOC: add SA01 for pandas.Series.dt.daysinmonth * DOC: remove SA01 for pandas.Series.dt.daysinmonth * DOC: remove SA01 for pandas.Series.dt.days_in_month
1 parent 58afdb4 commit 983568c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
164164
-i "pandas.Series.dt.ceil PR01,PR02" \
165165
-i "pandas.Series.dt.components SA01" \
166166
-i "pandas.Series.dt.day_name PR01,PR02" \
167-
-i "pandas.Series.dt.days_in_month SA01" \
168-
-i "pandas.Series.dt.daysinmonth SA01" \
169167
-i "pandas.Series.dt.floor PR01,PR02" \
170168
-i "pandas.Series.dt.freq GL08" \
171169
-i "pandas.Series.dt.microseconds SA01" \

pandas/core/arrays/datetimes.py

+9
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,15 @@ def isocalendar(self) -> DataFrame:
19131913
"""
19141914
The number of days in the month.
19151915
1916+
See Also
1917+
--------
1918+
Series.dt.day : Return the day of the month.
1919+
Series.dt.is_month_end : Return a boolean indicating if the
1920+
date is the last day of the month.
1921+
Series.dt.is_month_start : Return a boolean indicating if the
1922+
date is the first day of the month.
1923+
Series.dt.month : Return the month as January=1 through December=12.
1924+
19161925
Examples
19171926
--------
19181927
>>> s = pd.Series(["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"])

0 commit comments

Comments
 (0)