Skip to content

Commit

Permalink
DOC: fix SA01 for pandas.Timedelta.as_unit (#59030)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 committed Jun 17, 2024
1 parent 5d451fe commit 3809e2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Series.to_frame SA01" \
-i "pandas.Series.to_markdown SA01" \
-i "pandas.Series.update PR07,SA01" \
-i "pandas.Timedelta.as_unit SA01" \
-i "pandas.Timedelta.asm8 SA01" \
-i "pandas.Timedelta.ceil SA01" \
-i "pandas.Timedelta.components SA01" \
Expand Down
6 changes: 6 additions & 0 deletions pandas/_libs/tslibs/timedeltas.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,12 @@ cdef class _Timedelta(timedelta):
-------
Timedelta
See Also
--------
Timedelta : Represents a duration, the difference between two dates or times.
to_timedelta : Convert argument to timedelta.
Timedelta.asm8 : Return a numpy timedelta64 array scalar view.
Examples
--------
>>> td = pd.Timedelta('1001ms')
Expand Down

0 comments on commit 3809e2a

Please sign in to comment.