diff --git a/ci/code_checks.sh b/ci/code_checks.sh index adcf48507698b..225c846bed1a9 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -76,9 +76,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.dt.freq GL08" \ -i "pandas.Series.dt.unit GL08" \ -i "pandas.Series.pad PR01,SA01" \ - -i "pandas.Timedelta.max PR02" \ - -i "pandas.Timedelta.min PR02" \ - -i "pandas.Timedelta.resolution PR02" \ -i "pandas.Timestamp.max PR02" \ -i "pandas.Timestamp.min PR02" \ -i "pandas.Timestamp.nanosecond GL08" \ diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 15b629624bafc..90aca9ce5e4f6 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1893,6 +1893,18 @@ 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. + min : Timedelta + Returns the minimum Timedelta value that can be created or used in + pandas operations. + max : Timedelta + Returns the maximum Timedelta value that can be created or used in + pandas operations. + See Also -------- Timestamp : Represents a single timestamp in time.