Skip to content

Commit

Permalink
docs: add explanation about freq units in Timedelta.round()
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 15, 2023
1 parent 7134f2c commit 430be5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pandas/_libs/tslibs/timedeltas.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,7 @@ class Timedelta(_Timedelta):
----------
freq : str
Frequency string indicating the rounding resolution.
It uses the same units as class contructor :class:`~pandas.Timedelta`.
Returns
-------
Expand Down Expand Up @@ -1969,6 +1970,7 @@ class Timedelta(_Timedelta):
----------
freq : str
Frequency string indicating the flooring resolution.
It uses the same units as class contructor :class:`~pandas.Timedelta`.
Examples
--------
Expand All @@ -1988,6 +1990,7 @@ class Timedelta(_Timedelta):
----------
freq : str
Frequency string indicating the ceiling resolution.
It uses the same units as class contructor :class:`~pandas.Timedelta`.
Examples
--------
Expand Down

0 comments on commit 430be5f

Please sign in to comment.