File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,8 @@ similarly to the ``Series``
295
295
tds.to_pytimedelta().seconds
296
296
297
297
298
+ .. _timedeltas.index :
299
+
298
300
TimedeltaIndex
299
301
--------------
300
302
@@ -387,3 +389,14 @@ Scalars type ops work as well. These can potentially return a *different* type o
387
389
388
390
# or a Float64Index if the divisor is a Timedelta
389
391
tdi / tdi[0 ]
392
+
393
+ .. _timedeltas.resampling :
394
+
395
+ Resampling
396
+ ----------
397
+
398
+ Similar to :ref: `timeseries resampling <timeseries.resampling >`, we can resample with a ``TimedeltaIndex ``.
399
+
400
+ .. ipython :: python
401
+
402
+ s.resample(' D' )
Original file line number Diff line number Diff line change @@ -1525,7 +1525,7 @@ infer the right offset.
1525
1525
' 11/06/2011 03:00' ])
1526
1526
1527
1527
# This will fail as there are ambiguous times
1528
- rng_hourly.tz_localize(' US/Eastern' )
1528
+ rng_hourly.tz_localize(' US/Eastern' )
1529
1529
rng_hourly_eastern = rng_hourly.tz_localize(' US/Eastern' , ambiguous = ' infer' )
1530
1530
rng_hourly_eastern.tolist()
1531
1531
You can’t perform that action at this time.
0 commit comments