Skip to content

Commit 5b7f396

Browse files
committed
fix docstring
1 parent 9f4844a commit 5b7f396

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8323,7 +8323,7 @@ def resample(
83238323
2000-10-01 23:52:00 18
83248324
2000-10-02 00:09:00 27
83258325
2000-10-02 00:26:00 63
8326-
Freq: 17T, dtype: int32
8326+
Freq: 17T, dtype: int64
83278327
83288328
You can also specify the backward origin:
83298329

pandas/core/groupby/grouper.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ class Grouper:
219219
If you want to take the last timestamp as `origin` with a backward resample:
220220
221221
>>> 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
227227
228228
If you want to adjust the start of the bins with an `offset` Timedelta, the two
229229
following lines are equivalent:

0 commit comments

Comments
 (0)