code: def copy(self):
          
          return self._constructor(values=self._codes.copy(),
                                   dtype=self.dtype,
                                   fastpath=True)
docs: Copy constructor.