File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
213
213
-i " pandas.Timedelta.asm8 SA01" \
214
214
-i " pandas.Timedelta.ceil SA01" \
215
215
-i " pandas.Timedelta.components SA01" \
216
- -i " pandas.Timedelta.days SA01" \
217
216
-i " pandas.Timedelta.floor SA01" \
218
217
-i " pandas.Timedelta.max PR02" \
219
218
-i " pandas.Timedelta.min PR02" \
Original file line number Diff line number Diff line change @@ -1078,10 +1078,22 @@ cdef class _Timedelta(timedelta):
1078
1078
"""
1079
1079
Returns the days of the timedelta.
1080
1080
1081
+ The `days` attribute of a `pandas.Timedelta` object provides the number
1082
+ of days represented by the `Timedelta`. This is useful for extracting
1083
+ the day component from a `Timedelta` that may also include hours, minutes,
1084
+ seconds, and smaller time units. This attribute simplifies the process
1085
+ of working with durations where only the day component is of interest.
1086
+
1081
1087
Returns
1082
1088
-------
1083
1089
int
1084
1090
1091
+ See Also
1092
+ --------
1093
+ Timedelta.seconds : Returns the seconds component of the timedelta.
1094
+ Timedelta.microseconds : Returns the microseconds component of the timedelta.
1095
+ Timedelta.total_seconds : Returns the total duration in seconds.
1096
+
1085
1097
Examples
1086
1098
--------
1087
1099
>>> td = pd.Timedelta(1, "d")
You can’t perform that action at this time.
0 commit comments