Skip to content

Commit 59785d7

Browse files
committed
moved attributes to cdef class _Timedelta
1 parent f2ebb00 commit 59785d7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,19 @@ cdef class _Timedelta(timedelta):
10311031
# int64_t _d, _h, _m, _s, _ms, _us, _ns
10321032
# NPY_DATETIMEUNIT _reso
10331033

1034+
Attributes
1035+
----------
1036+
min : Timedelta
1037+
The minimum representable `Timedelta`, corresponding to the smallest
1038+
duration supported.
1039+
1040+
max : Timedelta
1041+
The maximum representable `Timedelta`, corresponding to the largest
1042+
duration supported.
1043+
1044+
resolution : Timedelta
1045+
The smallest possible difference between non-equal `Timedelta` objects.
1046+
10341047
# higher than np.ndarray and np.matrix
10351048
__array_priority__ = 100
10361049
min = MinMaxReso("min")
@@ -1894,19 +1907,6 @@ class Timedelta(_Timedelta):
18941907
Values for construction in compat with datetime.timedelta.
18951908
Numpy ints and floats will be coerced to python ints and floats.
18961909
1897-
Attributes
1898-
----------
1899-
min : Timedelta
1900-
The minimum representable `Timedelta`, corresponding to the smallest
1901-
duration supported.
1902-
1903-
max : Timedelta
1904-
The maximum representable `Timedelta`, corresponding to the largest
1905-
duration supported.
1906-
1907-
resolution : Timedelta
1908-
The smallest possible difference between non-equal `Timedelta` objects.
1909-
19101910
See Also
19111911
--------
19121912
Timestamp : Represents a single timestamp in time.

0 commit comments

Comments
 (0)