Skip to content

Commit

Permalink
Fix SA01 errors for DatetimeIndex methods
Browse files Browse the repository at this point in the history
  • Loading branch information
shriyakalakata committed Apr 19, 2024
1 parent 2fbabb1 commit e1d9a3d
Show file tree
Hide file tree
Showing 2 changed files with 8 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 @@ -114,7 +114,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DatetimeIndex.ceil SA01" \
-i "pandas.DatetimeIndex.date SA01" \
-i "pandas.DatetimeIndex.day SA01" \
-i "pandas.DatetimeIndex.day_name SA01" \
-i "pandas.DatetimeIndex.day_of_year SA01" \
-i "pandas.DatetimeIndex.dayofyear SA01" \
-i "pandas.DatetimeIndex.floor SA01" \
Expand All @@ -127,7 +126,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DatetimeIndex.microsecond SA01" \
-i "pandas.DatetimeIndex.minute SA01" \
-i "pandas.DatetimeIndex.month SA01" \
-i "pandas.DatetimeIndex.month_name SA01" \
-i "pandas.DatetimeIndex.nanosecond SA01" \
-i "pandas.DatetimeIndex.quarter SA01" \
-i "pandas.DatetimeIndex.round SA01" \
Expand Down
8 changes: 8 additions & 0 deletions pandas/core/arrays/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,10 @@ def month_name(self, locale=None) -> npt.NDArray[np.object_]:
Series or Index
Series or Index of month names.
See Also
--------
DatetimeIndex.day_name : Return the day names with specified locale.
Examples
--------
>>> s = pd.Series(pd.date_range(start="2018-01", freq="ME", periods=3))
Expand Down Expand Up @@ -1336,6 +1340,10 @@ def day_name(self, locale=None) -> npt.NDArray[np.object_]:
Series or Index
Series or Index of day names.
See Also
--------
DatetimeIndex.month_name : Return the month names with specified locale.
Examples
--------
>>> s = pd.Series(pd.date_range(start="2018-01-01", freq="D", periods=3))
Expand Down

0 comments on commit e1d9a3d

Please sign in to comment.