Skip to content

Commit

Permalink
DOC: Enforce Numpy Docstring Validation for pandas.Series.dt.daysinmo…
Browse files Browse the repository at this point in the history
…nth 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
  • Loading branch information
tuhinsharma121 committed May 8, 2024
1 parent 58afdb4 commit 983568c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +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.daysinmonth SA01" \
-i "pandas.Series.dt.floor PR01,PR02" \
-i "pandas.Series.dt.freq GL08" \
-i "pandas.Series.dt.microseconds SA01" \
Expand Down
9 changes: 9 additions & 0 deletions pandas/core/arrays/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 983568c

Please sign in to comment.