def __getitem__(self, key):
        try:
            return super(Resampler, self).__getitem__(key)
        except (__HOLE__, com.AbstractMethodError):

            # compat for deprecated
            if isinstance(self.obj, com.ABCSeries):
                return self._deprecated()[key]

            raise
dataset/ETHPy150Open pydata/pandas/pandas/tseries/resample.py/Resampler.__getitem__