Skip to content

Commit 454b0af

Browse files
DOC: fix SA01 for pandas.Period.quarter (#58841)
1 parent 79f4c53 commit 454b0af

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9999
-i "pandas.Period.month SA01" \
100100
-i "pandas.Period.now SA01" \
101101
-i "pandas.Period.ordinal GL08" \
102-
-i "pandas.Period.quarter SA01" \
103102
-i "pandas.Period.strftime PR01,SA01" \
104103
-i "pandas.Period.to_timestamp SA01" \
105104
-i "pandas.Period.year SA01" \

pandas/_libs/tslibs/period.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,12 @@ cdef class _Period(PeriodMixin):
23292329
"""
23302330
Return the quarter this Period falls on.
23312331

2332+
See Also
2333+
--------
2334+
Timestamp.quarter : Return the quarter of the Timestamp.
2335+
Period.year : Return the year of the period.
2336+
Period.month : Return the month of the period.
2337+
23322338
Examples
23332339
--------
23342340
>>> period = pd.Period('2022-04', 'M')

0 commit comments

Comments
 (0)