Skip to content

Commit 3318521

Browse files
petehuangjorisvandenbossche
authored andcommitted
DOC: Fix df.resample docstring example (#15004)
1 parent 3e3434b commit 3318521

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4229,11 +4229,11 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
42294229
Upsample the series into 30 second bins.
42304230
42314231
>>> series.resample('30S').asfreq()[0:5] #select first 5 rows
4232-
2000-01-01 00:00:00 0
4232+
2000-01-01 00:00:00 0.0
42334233
2000-01-01 00:00:30 NaN
4234-
2000-01-01 00:01:00 1
4234+
2000-01-01 00:01:00 1.0
42354235
2000-01-01 00:01:30 NaN
4236-
2000-01-01 00:02:00 2
4236+
2000-01-01 00:02:00 2.0
42374237
Freq: 30S, dtype: float64
42384238
42394239
Upsample the series into 30 second bins and fill the ``NaN``

0 commit comments

Comments
 (0)