Skip to content

Commit ed3a711

Browse files
committed
Removed last example
1 parent 5e90441 commit ed3a711

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pandas/core/tools/timedeltas.py

-12
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,6 @@ def to_timedelta(arg, unit='ns', box=True, errors='raise'):
8181
>>> pd.to_timedelta(np.arange(5), box=False)
8282
array([0, 1, 2, 3, 4], dtype='timedelta64[ns]')
8383
84-
Add new column of dates from existing dates in a `DataFrame`
85-
using `timedelta`:
86-
87-
>>> Dates = pd.to_datetime(['26/10/2018','28/10/2018', '2/11/2018'])
88-
>>> df = pd.DataFrame({'Start': Dates,'Days':[5, 10, 5]})
89-
>>> df['End'] = df['Start'] + pd.to_timedelta(df['Days'], unit='d')
90-
>>> df
91-
Start Days End
92-
0 2018-10-26 5 2018-10-31
93-
1 2018-10-28 10 2018-11-07
94-
2 2018-02-11 5 2018-02-16
95-
9684
See also
9785
9886
"""

0 commit comments

Comments
 (0)