File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8323,7 +8323,7 @@ def resample(
8323
8323
2000-10-01 23:52:00 18
8324
8324
2000-10-02 00:09:00 27
8325
8325
2000-10-02 00:26:00 63
8326
- Freq: 17T, dtype: int32
8326
+ Freq: 17T, dtype: int64
8327
8327
8328
8328
You can also specify the backward origin:
8329
8329
Original file line number Diff line number Diff line change @@ -219,11 +219,11 @@ class Grouper:
219
219
If you want to take the last timestamp as `origin` with a backward resample:
220
220
221
221
>>> ts.groupby(pd.Grouper(freq='17min', origin='end')).sum()
222
- 2000-10-01 23:39 :00 0
223
- 2000-10-01 23:56 :00 0
224
- 2000-10-02 00:13 :00 3
225
- 2000-10-02 00:30 :00 6
226
- Freq: 17T, dtype: int32
222
+ 2000-10-01 23:35 :00 0
223
+ 2000-10-01 23:52 :00 18
224
+ 2000-10-02 00:09 :00 27
225
+ 2000-10-02 00:26 :00 63
226
+ Freq: 17T, dtype: int64
227
227
228
228
If you want to adjust the start of the bins with an `offset` Timedelta, the two
229
229
following lines are equivalent:
You can’t perform that action at this time.
0 commit comments