def time_from_codes_all_int8(self):
    pd.Categorical.from_codes(self.values_all_int8, self.categories)
def time_from_codes_all_int8(self):
    pd.Categorical.from_codes(self.values_all_int8, self.categories)