From 1df8f80393eb81ad6e025a6ae777f57b8c675ce5 Mon Sep 17 00:00:00 2001 From: Pete Huang Date: Wed, 28 Dec 2016 08:55:15 -0800 Subject: [PATCH] DOC: Fix df.resample docstring example --- pandas/core/generic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 77c2699f5a432..8ce4c4b00454b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4229,11 +4229,11 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None, Upsample the series into 30 second bins. >>> series.resample('30S').asfreq()[0:5] #select first 5 rows - 2000-01-01 00:00:00 0 + 2000-01-01 00:00:00 0.0 2000-01-01 00:00:30 NaN - 2000-01-01 00:01:00 1 + 2000-01-01 00:01:00 1.0 2000-01-01 00:01:30 NaN - 2000-01-01 00:02:00 2 + 2000-01-01 00:02:00 2.0 Freq: 30S, dtype: float64 Upsample the series into 30 second bins and fill the ``NaN``