Skip to content

Commit b55309a

Browse files
committed
wip
1 parent c4db0e7 commit b55309a

File tree

3 files changed

+202
-186
lines changed

3 files changed

+202
-186
lines changed

pandas/core/generic.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -4040,8 +4040,10 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
40404040
label=None, convention='start', kind=None, loffset=None,
40414041
limit=None, base=0, on=None, level=None):
40424042
"""
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.
40454047
40464048
Parameters
40474049
----------
@@ -4060,11 +4062,11 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
40604062
aggregated intervals. For example, for '5min' frequency, base could
40614063
range from 0 through 4. Defaults to 0
40624064
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.
40654067
level : string or int, optional
40664068
For a MultiIndex, level (name or number) to use for
4067-
resampling
4069+
resampling. Level must be datetime-like.
40684070
40694071
To learn more about the offset strings, please see `this link
40704072
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.

pandas/tseries/resample.py

+1
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ def _get_resampler(self, obj, kind=None):
10021002
TypeError if incompatible axis
10031003
10041004
"""
1005+
import pdb; pdb.set_trace()
10051006
self._set_grouper(obj)
10061007

10071008
ax = self.ax

0 commit comments

Comments
 (0)