pandas.api.extensions.ExtensionArray.unique#

ExtensionArray.unique()[source]#

Compute the ExtensionArray of unique values.

Returns:
pandas.api.extensions.ExtensionArray

Examples

>>> arr = pd.array([1, 2, 3, 1, 2, 3])
>>> arr.unique()
<IntegerArray>
[1, 2, 3]
Length: 3, dtype: Int64