code: def _revert_categories(self):
          
          for column, dtype in self._categories.items():
              if column in self.columns:
                  self[column] = self[column].astype(dtype)
docs: Inplace conversion to categories.