Skip to content

Commit f95558f

Browse files
DOC: fix PR07,SA01 for pandas.arrays.TimedeltaArray (#60757)
1 parent 1bb264c commit f95558f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
7979
-i "pandas.Timestamp.min PR02" \
8080
-i "pandas.Timestamp.resolution PR02" \
8181
-i "pandas.Timestamp.tzinfo GL08" \
82-
-i "pandas.arrays.TimedeltaArray PR07,SA01" \
8382
-i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \
8483
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
8584
-i "pandas.core.resample.Resampler.quantile PR01,PR07" \

pandas/core/arrays/timedeltas.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class TimedeltaArray(dtl.TimelikeOps):
115115
----------
116116
data : array-like
117117
The timedelta data.
118-
119118
dtype : numpy.dtype
120119
Currently, only ``numpy.dtype("timedelta64[ns]")`` is accepted.
121120
freq : Offset, optional
121+
Frequency of the data.
122122
copy : bool, default False
123123
Whether to copy the underlying array of data.
124124
@@ -130,6 +130,12 @@ class TimedeltaArray(dtl.TimelikeOps):
130130
-------
131131
None
132132
133+
See Also
134+
--------
135+
Timedelta : Represents a duration, the difference between two dates or times.
136+
TimedeltaIndex : Immutable Index of timedelta64 data.
137+
to_timedelta : Convert argument to timedelta.
138+
133139
Examples
134140
--------
135141
>>> pd.arrays.TimedeltaArray._from_sequence(pd.TimedeltaIndex(["1h", "2h"]))

0 commit comments

Comments
 (0)