Skip to content

Commit 3809e2a

Browse files
DOC: fix SA01 for pandas.Timedelta.as_unit (#59030)
1 parent 5d451fe commit 3809e2a

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
@@ -211,7 +211,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
211211
-i "pandas.Series.to_frame SA01" \
212212
-i "pandas.Series.to_markdown SA01" \
213213
-i "pandas.Series.update PR07,SA01" \
214-
-i "pandas.Timedelta.as_unit SA01" \
215214
-i "pandas.Timedelta.asm8 SA01" \
216215
-i "pandas.Timedelta.ceil SA01" \
217216
-i "pandas.Timedelta.components SA01" \

pandas/_libs/tslibs/timedeltas.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -1731,6 +1731,12 @@ cdef class _Timedelta(timedelta):
17311731
-------
17321732
Timedelta
17331733
1734+
See Also
1735+
--------
1736+
Timedelta : Represents a duration, the difference between two dates or times.
1737+
to_timedelta : Convert argument to timedelta.
1738+
Timedelta.asm8 : Return a numpy timedelta64 array scalar view.
1739+
17341740
Examples
17351741
--------
17361742
>>> td = pd.Timedelta('1001ms')

0 commit comments

Comments
 (0)