Skip to content

Commit 38ccb33

Browse files
DOC: fix SA01 for pandas.Period.to_timestamp (#59730)
1 parent 3f8d3e4 commit 38ccb33

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
@@ -73,7 +73,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
7373
-i "pandas.NA SA01" \
7474
-i "pandas.Period.freq GL08" \
7575
-i "pandas.Period.ordinal GL08" \
76-
-i "pandas.Period.to_timestamp SA01" \
7776
-i "pandas.PeriodDtype.freq SA01" \
7877
-i "pandas.RangeIndex.from_range PR01,SA01" \
7978
-i "pandas.RangeIndex.start SA01" \

pandas/_libs/tslibs/period.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,12 @@ cdef class _Period(PeriodMixin):
20012001
-------
20022002
Timestamp
20032003

2004+
See Also
2005+
--------
2006+
Timestamp : A class representing a single point in time.
2007+
Period : Represents a span of time with a fixed frequency.
2008+
PeriodIndex.to_timestamp : Convert a `PeriodIndex` to a `DatetimeIndex`.
2009+
20042010
Examples
20052011
--------
20062012
>>> period = pd.Period('2023-1-1', freq='D')

0 commit comments

Comments
 (0)