Skip to content

Commit

Permalink
DOC: fix PR07,SA01 for pandas.arrays.TimedeltaArray (#60757)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Jan 22, 2025
1 parent 1bb264c commit f95558f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.min PR02" \
-i "pandas.Timestamp.resolution PR02" \
-i "pandas.Timestamp.tzinfo GL08" \
-i "pandas.arrays.TimedeltaArray PR07,SA01" \
-i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
-i "pandas.core.resample.Resampler.quantile PR01,PR07" \
Expand Down
8 changes: 7 additions & 1 deletion pandas/core/arrays/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ class TimedeltaArray(dtl.TimelikeOps):
----------
data : array-like
The timedelta data.
dtype : numpy.dtype
Currently, only ``numpy.dtype("timedelta64[ns]")`` is accepted.
freq : Offset, optional
Frequency of the data.
copy : bool, default False
Whether to copy the underlying array of data.
Expand All @@ -130,6 +130,12 @@ class TimedeltaArray(dtl.TimelikeOps):
-------
None
See Also
--------
Timedelta : Represents a duration, the difference between two dates or times.
TimedeltaIndex : Immutable Index of timedelta64 data.
to_timedelta : Convert argument to timedelta.
Examples
--------
>>> pd.arrays.TimedeltaArray._from_sequence(pd.TimedeltaIndex(["1h", "2h"]))
Expand Down

0 comments on commit f95558f

Please sign in to comment.