On this page
pandas.api.extensions.ExtensionArray._from_factorized
- classmethodExtensionArray._from_factorized(values, original)[source]
-
Reconstruct an ExtensionArray after factorization.
- Parameters
-
- values:ndarray
-
An integer ndarray with the factorized values.
- original:ExtensionArray
-
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.
© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.5.0/reference/api/pandas.api.extensions.ExtensionArray._from_factorized.html