def _wrap_result(self, result):
        if isinstance(result, com.ABCSeries) and self._selection is not None:
            result.name = self._selection
        return result
potentially wrap any results
dataset/ETHPy150Open pydata/pandas/pandas/tseries/resample.py/Resampler._wrap_result