Copy constructor.

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