def _with_freq(self, freq):
    arr = self._data._with_freq(freq)
    return type(self)._simple_new(arr, name=self._name)
def _with_freq(self, freq):
    arr = self._data._with_freq(freq)
    return type(self)._simple_new(arr, name=self._name)