pandas.api.extensions.ExtensionArray._from_factorized¶
-
classmethod
ExtensionArray.
_from_factorized
(values, original)[source]¶ Reconstruct an ExtensionArray after factorization.
- Parameters
- valuesndarray
An integer ndarray with the factorized values.
- originalExtensionArray
The original ExtensionArray that factorize was called on.
See also
factorize
Top-level factorize method that dispatches here.
ExtensionArray.factorize
Encode the extension array as an enumerated type.