@@ -706,7 +706,7 @@ def iterkv(self, *args, **kwargs):
706706 "iteritems alias used to get around 2to3. Deprecated"
707707 warnings .warn ("iterkv is deprecated and will be removed in a future "
708708 "release, use ``iteritems`` instead." ,
709- FutureWarning )
709+ FutureWarning , stacklevel = 2 )
710710 return self .iteritems (* args , ** kwargs )
711711
712712 def __len__ (self ):
@@ -3376,11 +3376,11 @@ def resample(self, rule, how=None, axis=0, fill_method=None,
33763376 For frequencies that evenly subdivide 1 day, the "origin" of the
33773377 aggregated intervals. For example, for '5min' frequency, base could
33783378 range from 0 through 4. Defaults to 0
3379-
3379+
33803380
33813381 Examples
33823382 --------
3383-
3383+
33843384 Start by creating a series with 9 one minute timestamps.
33853385
33863386 >>> index = pd.date_range('1/1/2000', periods=9, freq='T')
@@ -3409,11 +3409,11 @@ def resample(self, rule, how=None, axis=0, fill_method=None,
34093409 Downsample the series into 3 minute bins as above, but label each
34103410 bin using the right edge instead of the left. Please note that the
34113411 value in the bucket used as the label is not included in the bucket,
3412- which it labels. For example, in the original series the
3412+ which it labels. For example, in the original series the
34133413 bucket ``2000-01-01 00:03:00`` contains the value 3, but the summed
3414- value in the resampled bucket with the label``2000-01-01 00:03:00``
3414+ value in the resampled bucket with the label``2000-01-01 00:03:00``
34153415 does not include 3 (if it did, the summed value would be 6, not 3).
3416- To include this value close the right side of the bin interval as
3416+ To include this value close the right side of the bin interval as
34173417 illustrated in the example below this one.
34183418
34193419 >>> series.resample('3T', how='sum', label='right')
@@ -3424,7 +3424,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None,
34243424
34253425 Downsample the series into 3 minute bins as above, but close the right
34263426 side of the bin interval.
3427-
3427+
34283428 >>> series.resample('3T', how='sum', label='right', closed='right')
34293429 2000-01-01 00:00:00 0
34303430 2000-01-01 00:03:00 6
@@ -3453,7 +3453,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None,
34533453 2000-01-01 00:02:00 2
34543454 Freq: 30S, dtype: int64
34553455
3456- Upsample the series into 30 second bins and fill the
3456+ Upsample the series into 30 second bins and fill the
34573457 ``NaN`` values using the ``bfill`` method.
34583458
34593459 >>> series.resample('30S', fill_method='bfill')[0:5]
@@ -3468,7 +3468,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None,
34683468
34693469 >>> def custom_resampler(array_like):
34703470 ... return np.sum(array_like)+5
3471-
3471+
34723472 >>> series.resample('3T', how=custom_resampler)
34733473 2000-01-01 00:00:00 8
34743474 2000-01-01 00:03:00 17
0 commit comments