Skip to content

Commit 477f5aa

Browse files
committed
Avoid passing Day to Timedelta in docs
1 parent 39e0c2d commit 477f5aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/timedeltas.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You can construct a ``Timedelta`` scalar through various arguments, including `I
5353
pd.Timedelta("P0DT0H1M0S")
5454
pd.Timedelta("P0DT0H0M0.000000123S")
5555
56-
:ref:`DateOffsets<timeseries.offsets>` (``Day, Hour, Minute, Second, Milli, Micro, Nano``) can also be used in construction.
56+
:ref:`DateOffsets<timeseries.offsets>` (``Hour, Minute, Second, Milli, Micro, Nano``) can also be used in construction.
5757

5858
.. ipython:: python
5959
@@ -63,7 +63,7 @@ Further, operations among the scalars yield another scalar ``Timedelta``.
6363

6464
.. ipython:: python
6565
66-
pd.Timedelta(pd.offsets.Day(2)) + pd.Timedelta(pd.offsets.Second(2)) + pd.Timedelta(
66+
pd.Timedelta(pd.offsets.Hour(48)) + pd.Timedelta(pd.offsets.Second(2)) + pd.Timedelta(
6767
"00:00:00.000123"
6868
)
6969

0 commit comments

Comments
 (0)