Skip to content

Commit d7ab3a3

Browse files
authored
Add documentation for min, max, and resolution attributes of Timedelta
1 parent bc9b1c3 commit d7ab3a3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pandas/_libs/tslibs/timedeltas.pyx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,21 @@ class Timedelta(_Timedelta):
18351835
Values for construction in compat with datetime.timedelta.
18361836
Numpy ints and floats will be coerced to python ints and floats.
18371837
1838+
**Attributes
1839+
--------
1840+
resolution: Timedelta
1841+
Represents the smallest difference between two time units that can be represented
1842+
by the Timedelta object.
1843+
Fixed at 0 days 00:00:00.000000001 (1 nanosecond).
1844+
min : Timedelta
1845+
Returns the minimum Timedelta value that can be created or used in
1846+
pandas operations.
1847+
Fixed at -106752 days +00:12:43.145224193
1848+
max : Timedelta
1849+
Returns the maximum Timedelta value that can be created or used in
1850+
pandas operations.
1851+
Fixed at 106751 days 23:47:16.854775807.
1852+
18381853
See Also
18391854
--------
18401855
Timestamp : Represents a single timestamp in time.

0 commit comments

Comments
 (0)