Skip to content

Commit 01b0899

Browse files
DOC: fix SA01,ES01 for pandas.Timedelta.total_seconds
1 parent 73c4fce commit 01b0899

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
107107
-i "pandas.Timedelta.min PR02" \
108108
-i "pandas.Timedelta.resolution PR02" \
109109
-i "pandas.Timedelta.to_timedelta64 SA01" \
110-
-i "pandas.Timedelta.total_seconds SA01" \
111110
-i "pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
112111
-i "pandas.Timestamp.max PR02" \
113112
-i "pandas.Timestamp.min PR02" \

pandas/_libs/tslibs/timedeltas.pyx

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

1192+
This method calculates the total duration in seconds by combining
1193+
the days, seconds, and microseconds of the `Timedelta` object.
1194+
1195+
See Also
1196+
--------
1197+
to_timedelta : Convert argument to timedelta.
1198+
Timedelta : Represents a duration, the difference between two dates or times.
1199+
11921200
Examples
11931201
--------
11941202
>>> td = pd.Timedelta('1min')

0 commit comments

Comments
 (0)