pandas.api.extensions.ExtensionArray.tolist#

ExtensionArray.tolist()[source]#

Return a list of the values.

These are each a scalar type, which is a Python scalar (for str, int, float) or a pandas scalar (for Timestamp/Timedelta/Interval/Period)

Returns:
list

Python list of values in array.

See also

Index.to_list

Return a list of the values in the Index.

Series.to_list

Return a list of the values in the Series.

Examples

>>> arr = pd.array([1, 2, 3])
>>> arr.tolist()
[1, 2, 3]