def f(self): base, mult = _gfc(self.freq) result = get_period_field_arr(alias, self._values, base) return Index(result, name=self.name)
def f(self): base, mult = frequencies.get_freq_code(self.freq) result = get_period_field_arr(alias, self.asi8, base) return result
def f(self): base = self.freq._period_dtype_code result = get_period_field_arr(name, self.asi8, base) return result
def test_get_period_field_array_raises_on_out_of_range(self): msg = "Buffer dtype mismatch, expected 'const int64_t' but got 'double'" with pytest.raises(ValueError, match=msg): libperiod.get_period_field_arr(-1, np.empty(1), 0)
def f(self): base, _ = libfrequencies.get_freq_code(self.freq) result = get_period_field_arr(name, self.asi8, base) return result