Skip to content

Commit cd3fbd6

Browse files
committed
Fix SA01 for Timedelta.total_seconds()
1 parent 49cab81 commit cd3fbd6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
114114
-i "pandas.Timedelta.min PR02" \
115115
-i "pandas.Timedelta.resolution PR02" \
116116
-i "pandas.Timedelta.to_numpy PR01" \
117-
-i "pandas.Timedelta.total_seconds SA01" \
118117
-i "pandas.Timedelta.view SA01" \
119118
-i "pandas.TimedeltaIndex.components SA01" \
120119
-i "pandas.TimedeltaIndex.microseconds SA01" \

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,11 @@ cdef class _Timedelta(timedelta):
11891189
"""
11901190
Total seconds in the duration.
11911191

1192+
See Also
1193+
--------
1194+
Timedelta.seconds : Returns the seconds component of the timedelta.
1195+
Timedelta.microseconds : Returns the microseconds component of the timedelta.
1196+
11921197
Examples
11931198
--------
11941199
>>> td = pd.Timedelta('1min')

0 commit comments

Comments
 (0)