pandas.api.extensions.ExtensionArray._from_factorized

classmethod ExtensionArray._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–2021, 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.3.4/reference/api/pandas.api.extensions.ExtensionArray._from_factorized.html