Skip to content

Commit 4393a48

Browse files
committed
Add documentation for min, max, and resolution attributes of Timedelta
1 parent 16b7288 commit 4393a48

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pandas/_libs/tslibs/timedeltas.pyx

+15
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,21 @@ class Timedelta(_Timedelta):
18571857
Values for construction in compat with datetime.timedelta.
18581858
Numpy ints and floats will be coerced to python ints and floats.
18591859
1860+
**Attributes
1861+
--------
1862+
resolution: Timedelta
1863+
Represents the smallest difference between two time units that can be represented
1864+
by the Timedelta object.
1865+
Fixed at 0 days 00:00:00.000000001 (1 nanosecond).
1866+
min : Timedelta
1867+
Returns the minimum Timedelta value that can be created or used in
1868+
pandas operations.
1869+
Fixed at -106752 days +00:12:43.145224193
1870+
max : Timedelta
1871+
Returns the maximum Timedelta value that can be created or used in
1872+
pandas operations.
1873+
Fixed at 106751 days 23:47:16.854775807.
1874+
18601875
See Also
18611876
--------
18621877
Timestamp : Represents a single timestamp in time.

0 commit comments

Comments
 (0)