pandas.api.extensions.ExtensionArray._from_factorized
pandas 3.1.1 · Extensions · method
Rebuild an extension array from the unique values produced by a factorization operation.
Call syntax
pd.api.extensions.ExtensionArray._from_factorized(values, original)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
values |
Required Positional or keyword |
ndarray Supply values to transform, match, aggregate, or use as data. |
original |
Required Positional or keyword |
ExtensionArray |