ExtensionArray.factorize(self, na_sentinel: int = -1) → Tuple[numpy.ndarray, pandas.core.dtypes.generic.ABCExtensionArray]
[source]
Encode the extension array as an enumerated type.
Parameters: |
|
---|---|
Returns: |
|
See also
factorize
pandas.factorize()
offers a sort
keyword as well.
© 2008–2012, 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/0.25.0/reference/api/pandas.api.extensions.ExtensionArray.factorize.html