Skip to content

Commit 12c5aba

Browse files
KeiOshimapmhatre1
authored andcommitted
DOC: removing SA01 errors for DateTimeIndex: hour, minute, and second. (pandas-dev#58331)
* doc: removing SA01 errors for datetimeIndex: hour, minute, second * fixing docString error
1 parent d557410 commit 12c5aba

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

ci/code_checks.sh

-6
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,14 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
118118
-i "pandas.DatetimeIndex.dayofyear SA01" \
119119
-i "pandas.DatetimeIndex.floor SA01" \
120120
-i "pandas.DatetimeIndex.freqstr SA01" \
121-
-i "pandas.DatetimeIndex.hour SA01" \
122121
-i "pandas.DatetimeIndex.indexer_at_time PR01,RT03" \
123122
-i "pandas.DatetimeIndex.indexer_between_time RT03" \
124123
-i "pandas.DatetimeIndex.inferred_freq SA01" \
125124
-i "pandas.DatetimeIndex.is_leap_year SA01" \
126125
-i "pandas.DatetimeIndex.microsecond SA01" \
127-
-i "pandas.DatetimeIndex.minute SA01" \
128126
-i "pandas.DatetimeIndex.nanosecond SA01" \
129127
-i "pandas.DatetimeIndex.quarter SA01" \
130128
-i "pandas.DatetimeIndex.round SA01" \
131-
-i "pandas.DatetimeIndex.second SA01" \
132129
-i "pandas.DatetimeIndex.snap PR01,RT03,SA01" \
133130
-i "pandas.DatetimeIndex.std PR01,RT03" \
134131
-i "pandas.DatetimeIndex.time SA01" \
@@ -317,19 +314,16 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
317314
-i "pandas.Series.dt.daysinmonth SA01" \
318315
-i "pandas.Series.dt.floor PR01,PR02,SA01" \
319316
-i "pandas.Series.dt.freq GL08" \
320-
-i "pandas.Series.dt.hour SA01" \
321317
-i "pandas.Series.dt.is_leap_year SA01" \
322318
-i "pandas.Series.dt.microsecond SA01" \
323319
-i "pandas.Series.dt.microseconds SA01" \
324-
-i "pandas.Series.dt.minute SA01" \
325320
-i "pandas.Series.dt.month_name PR01,PR02" \
326321
-i "pandas.Series.dt.nanosecond SA01" \
327322
-i "pandas.Series.dt.nanoseconds SA01" \
328323
-i "pandas.Series.dt.normalize PR01" \
329324
-i "pandas.Series.dt.quarter SA01" \
330325
-i "pandas.Series.dt.qyear GL08" \
331326
-i "pandas.Series.dt.round PR01,PR02,SA01" \
332-
-i "pandas.Series.dt.second SA01" \
333327
-i "pandas.Series.dt.seconds SA01" \
334328
-i "pandas.Series.dt.strftime PR01,PR02" \
335329
-i "pandas.Series.dt.time SA01" \

pandas/core/arrays/datetimes.py

+17
Original file line numberDiff line numberDiff line change
@@ -1620,6 +1620,12 @@ def isocalendar(self) -> DataFrame:
16201620
"""
16211621
The hours of the datetime.
16221622
1623+
See Also
1624+
--------
1625+
DatetimeIndex.day: The day of the datetime.
1626+
DatetimeIndex.minute: The minutes of the datetime.
1627+
DatetimeIndex.second: The seconds of the datetime.
1628+
16231629
Examples
16241630
--------
16251631
>>> datetime_series = pd.Series(
@@ -1643,6 +1649,11 @@ def isocalendar(self) -> DataFrame:
16431649
"""
16441650
The minutes of the datetime.
16451651
1652+
See Also
1653+
--------
1654+
DatetimeIndex.hour: The hours of the datetime.
1655+
DatetimeIndex.second: The seconds of the datetime.
1656+
16461657
Examples
16471658
--------
16481659
>>> datetime_series = pd.Series(
@@ -1666,6 +1677,12 @@ def isocalendar(self) -> DataFrame:
16661677
"""
16671678
The seconds of the datetime.
16681679
1680+
See Also
1681+
--------
1682+
DatetimeIndex.minute: The minutes of the datetime.
1683+
DatetimeIndex.microsecond: The microseconds of the datetime.
1684+
DatetimeIndex.nanosecond: The nanoseconds of the datetime.
1685+
16691686
Examples
16701687
--------
16711688
>>> datetime_series = pd.Series(

0 commit comments

Comments
 (0)