Skip to content

Commit 8dc5a3f

Browse files
DOC: fix SA01 for pandas.Period (#58838)
1 parent fa937aa commit 8dc5a3f

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
@@ -93,7 +93,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9393
-i "pandas.NA SA01" \
9494
-i "pandas.NaT SA01" \
9595
-i "pandas.NamedAgg SA01" \
96-
-i "pandas.Period SA01" \
9796
-i "pandas.Period.asfreq SA01" \
9897
-i "pandas.Period.freq GL08" \
9998
-i "pandas.Period.freqstr SA01" \

pandas/_libs/tslibs/period.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -2699,6 +2699,12 @@ class Period(_Period):
26992699
second : int, default 0
27002700
Second value of the period.
27012701
2702+
See Also
2703+
--------
2704+
Timestamp : Pandas replacement for python datetime.datetime object.
2705+
date_range : Return a fixed frequency DatetimeIndex.
2706+
timedelta_range : Generates a fixed frequency range of timedeltas.
2707+
27022708
Examples
27032709
--------
27042710
>>> period = pd.Period('2012-1-1', freq='D')

0 commit comments

Comments
 (0)