Skip to content

Commit

Permalink
CLN: remove unused TimeGrouper._get_binner_for_resample() method (#16152
Browse files Browse the repository at this point in the history
)
  • Loading branch information
winklerand authored and jreback committed Apr 27, 2017
1 parent cefc8c0 commit 2d9909c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pandas/core/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,23 +1099,6 @@ def _get_grouper(self, obj):
r._set_binner()
return r.binner, r.grouper, r.obj

def _get_binner_for_resample(self, kind=None):
# create the BinGrouper
# assume that self.set_grouper(obj) has already been called

ax = self.ax
if kind is None:
kind = self.kind
if kind is None or kind == 'timestamp':
self.binner, bins, binlabels = self._get_time_bins(ax)
elif kind == 'timedelta':
self.binner, bins, binlabels = self._get_time_delta_bins(ax)
else:
self.binner, bins, binlabels = self._get_time_period_bins(ax)

self.grouper = BinGrouper(bins, binlabels)
return self.binner, self.grouper, self.obj

def _get_binner_for_grouping(self, obj):
# return an ordering of the transformed group labels,
# suitable for multi-grouping, e.g the labels for
Expand Down

0 comments on commit 2d9909c

Please sign in to comment.