diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2aa256b65a493..bfd31cb52cd4d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -104,9 +104,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.sparse.npoints SA01" \ -i "pandas.Series.sparse.sp_values SA01" \ -i "pandas.Timedelta.components SA01" \ - -i "pandas.Timedelta.max PR02" \ - -i "pandas.Timedelta.min PR02" \ - -i "pandas.Timedelta.resolution PR02" \ -i "pandas.Timedelta.to_timedelta64 SA01" \ -i "pandas.Timedelta.total_seconds SA01" \ -i "pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \ diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 4f90f26cf31ab..86627e71371c9 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1857,6 +1857,21 @@ class Timedelta(_Timedelta): Values for construction in compat with datetime.timedelta. Numpy ints and floats will be coerced to python ints and floats. + Attributes + ---------- + resolution: Timedelta + Represents the smallest difference between two time units that can be + represented by the Timedelta object. + Fixed at 0 days 00:00:00.000000001 (1 nanosecond). + min : Timedelta + Returns the minimum Timedelta value that can be created or used in + pandas operations. + Fixed at -106752 days +00:12:43.145224193 + max : Timedelta + Returns the maximum Timedelta value that can be created or used in + pandas operations. + Fixed at 106751 days 23:47:16.854775807. + See Also -------- Timestamp : Represents a single timestamp in time.