Skip to content

Commit c41fb1b

Browse files
KeiOshimapmhatre1
authored andcommitted
DOC: fixing SA01 error for DatetimeIndex: second, nanosecond, and microsecond (pandas-dev#58342)
* DOC: fixing SA01 error for DatetimeIndex: second, nanosecond, microsecond * fixing EXPECTED TO FAIL, BUT NOT FAILING error
1 parent 3bc79af commit c41fb1b

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

ci/code_checks.sh

-6
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
109109
-i "pandas.DataFrame.var PR01,RT03,SA01" \
110110
-i "pandas.DatetimeIndex.ceil SA01" \
111111
-i "pandas.DatetimeIndex.date SA01" \
112-
-i "pandas.DatetimeIndex.day SA01" \
113112
-i "pandas.DatetimeIndex.day_of_year SA01" \
114113
-i "pandas.DatetimeIndex.dayofyear SA01" \
115114
-i "pandas.DatetimeIndex.floor SA01" \
@@ -118,8 +117,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
118117
-i "pandas.DatetimeIndex.indexer_between_time RT03" \
119118
-i "pandas.DatetimeIndex.inferred_freq SA01" \
120119
-i "pandas.DatetimeIndex.is_leap_year SA01" \
121-
-i "pandas.DatetimeIndex.microsecond SA01" \
122-
-i "pandas.DatetimeIndex.nanosecond SA01" \
123120
-i "pandas.DatetimeIndex.quarter SA01" \
124121
-i "pandas.DatetimeIndex.round SA01" \
125122
-i "pandas.DatetimeIndex.snap PR01,RT03,SA01" \
@@ -296,7 +293,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
296293
-i "pandas.Series.dt.ceil PR01,PR02,SA01" \
297294
-i "pandas.Series.dt.components SA01" \
298295
-i "pandas.Series.dt.date SA01" \
299-
-i "pandas.Series.dt.day SA01" \
300296
-i "pandas.Series.dt.day_name PR01,PR02" \
301297
-i "pandas.Series.dt.day_of_year SA01" \
302298
-i "pandas.Series.dt.dayofyear SA01" \
@@ -306,10 +302,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
306302
-i "pandas.Series.dt.floor PR01,PR02,SA01" \
307303
-i "pandas.Series.dt.freq GL08" \
308304
-i "pandas.Series.dt.is_leap_year SA01" \
309-
-i "pandas.Series.dt.microsecond SA01" \
310305
-i "pandas.Series.dt.microseconds SA01" \
311306
-i "pandas.Series.dt.month_name PR01,PR02" \
312-
-i "pandas.Series.dt.nanosecond SA01" \
313307
-i "pandas.Series.dt.nanoseconds SA01" \
314308
-i "pandas.Series.dt.normalize PR01" \
315309
-i "pandas.Series.dt.quarter SA01" \

pandas/core/arrays/datetimes.py

+16
Original file line numberDiff line numberDiff line change
@@ -1597,6 +1597,12 @@ def isocalendar(self) -> DataFrame:
15971597
"""
15981598
The day of the datetime.
15991599
1600+
See Also
1601+
--------
1602+
DatetimeIndex.year: The year of the datetime.
1603+
DatetimeIndex.month: The month as January=1, December=12.
1604+
DatetimeIndex.hour: The hours of the datetime.
1605+
16001606
Examples
16011607
--------
16021608
>>> datetime_series = pd.Series(
@@ -1706,6 +1712,11 @@ def isocalendar(self) -> DataFrame:
17061712
"""
17071713
The microseconds of the datetime.
17081714
1715+
See Also
1716+
--------
1717+
DatetimeIndex.second: The seconds of the datetime.
1718+
DatetimeIndex.nanosecond: The nanoseconds of the datetime.
1719+
17091720
Examples
17101721
--------
17111722
>>> datetime_series = pd.Series(
@@ -1729,6 +1740,11 @@ def isocalendar(self) -> DataFrame:
17291740
"""
17301741
The nanoseconds of the datetime.
17311742
1743+
See Also
1744+
--------
1745+
DatetimeIndex.second: The seconds of the datetime.
1746+
DatetimeIndex.microsecond: The microseconds of the datetime.
1747+
17321748
Examples
17331749
--------
17341750
>>> datetime_series = pd.Series(

0 commit comments

Comments
 (0)