@@ -1498,6 +1498,12 @@ cdef class _Timedelta(timedelta):
1498
1498
numpy timedelta64 array scalar view
1499
1499
Array scalar view of the timedelta in nanoseconds.
1500
1500
1501
+ See Also
1502
+ --------
1503
+ Timedelta.total_seconds : Return the total seconds in the duration.
1504
+ Timedelta.components : Return a namedtuple of the Timedelta's components.
1505
+ Timedelta.to_timedelta64 : Convert the Timedelta to a numpy.timedelta64.
1506
+
1501
1507
Examples
1502
1508
--------
1503
1509
>>> td = pd.Timedelta(' 1 days 2 min 3 us 42 ns' )
@@ -2061,6 +2067,12 @@ class Timedelta(_Timedelta):
2061
2067
------
2062
2068
ValueError if the freq cannot be converted
2063
2069
2070
+ See Also
2071
+ --------
2072
+ Timedelta.floor : Floor the Timedelta to the specified resolution.
2073
+ Timedelta.round : Round the Timedelta to the nearest specified resolution.
2074
+ Timestamp.ceil : Similar method for Timestamp objects.
2075
+
2064
2076
Examples
2065
2077
--------
2066
2078
>>> td = pd.Timedelta('1001ms')
@@ -2081,6 +2093,16 @@ class Timedelta(_Timedelta):
2081
2093
Frequency string indicating the flooring resolution.
2082
2094
It uses the same units as class constructor :class:`~pandas.Timedelta`.
2083
2095
2096
+ Returns
2097
+ -------
2098
+ Timedelta
2099
+ A new Timedelta object floored to the specified resolution.
2100
+
2101
+ See Also
2102
+ --------
2103
+ Timestamp.ceil : Round the Timestamp up to the nearest specified resolution.
2104
+ Timestamp.round : Round the Timestamp to the nearest specified resolution.
2105
+
2084
2106
Examples
2085
2107
--------
2086
2108
>>> td = pd.Timedelta('1001ms')
@@ -2101,6 +2123,16 @@ class Timedelta(_Timedelta):
2101
2123
Frequency string indicating the ceiling resolution.
2102
2124
It uses the same units as class constructor :class:`~pandas.Timedelta`.
2103
2125
2126
+ Returns
2127
+ -------
2128
+ Timedelta
2129
+ A new Timedelta object ceiled to the specified resolution.
2130
+
2131
+ See Also
2132
+ --------
2133
+ Timedelta.floor : Floor the Timedelta to the specified resolution.
2134
+ Timedelta.round : Round the Timedelta to the nearest specified resolution.
2135
+
2104
2136
Examples
2105
2137
--------
2106
2138
>>> td = pd.Timedelta('1001ms')
0 commit comments