Construct a new ExtensionArray from a sequence of scalars.
Each element will be an instance of the scalar type for this array, cls.dtype.type or be converted into this type in this method.
Construct for this particular dtype. This should be a Dtype compatible with the ExtensionArray.
If True, copy the underlying data.
Examples
>>> pd.arrays.IntegerArray._from_sequence([4, 5])
<IntegerArray>
[4, 5]
Length: 2, dtype: Int64
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.api.extensions.ExtensionArray._from_sequence.html