def get_values(self):
    ' Return the values.\n\n        For internal compatibility with pandas formatting.\n\n        Returns\n        -------\n        values : numpy array\n            A numpy array of the same dtype as categorical.categories.dtype or\n            Index if datetime / periods\n        '
    if is_datetimelike(self.categories):
        return self.categories.take(self._codes, fill_value=np.nan)
    return np.array(self)
Return the values.

For internal compatibility with pandas formatting.

Returns
-------
values : numpy array
    A numpy array of the same dtype as categorical.categories.dtype or
    Index if datetime / periods
def get_values(self):
    ' Return the values.\n\n        For internal compatibility with pandas formatting.\n\n        Returns\n        -------\n        values : numpy array\n            A numpy array of the same dtype as categorical.categories.dtype or\n            Index if datetime / periods\n        '
    if is_datetimelike(self.categories):
        return self.categories.take(self._codes, fill_value=np.nan)
    return np.array(self)