@@ -4040,8 +4040,10 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
4040
4040
label = None , convention = 'start' , kind = None , loffset = None ,
4041
4041
limit = None , base = 0 , on = None , level = None ):
4042
4042
"""
4043
- Convenience method for frequency conversion and resampling of regular
4044
- time-series data.
4043
+ Convenience method for frequency conversion and resampling of time
4044
+ series. Object must have a datetime-like index (DatetimeIndex,
4045
+ PeriodIndex, or TimedeltaIndex), or pass datetime-like values
4046
+ to the on or level keyword.
4045
4047
4046
4048
Parameters
4047
4049
----------
@@ -4060,11 +4062,11 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
4060
4062
aggregated intervals. For example, for '5min' frequency, base could
4061
4063
range from 0 through 4. Defaults to 0
4062
4064
on : string, optional
4063
- For a DataFrame, column to use for resampling, rather than
4064
- the index
4065
+ For a DataFrame, column to use instead of index for resampling.
4066
+ Column must be datetime-like.
4065
4067
level : string or int, optional
4066
4068
For a MultiIndex, level (name or number) to use for
4067
- resampling
4069
+ resampling. Level must be datetime-like.
4068
4070
4069
4071
To learn more about the offset strings, please see `this link
4070
4072
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
0 commit comments