A pandas ExtensionArray for NumPy data.
This is mostly for internal compatibility, and is not especially useful on its own.
The NumPy ndarray to wrap. Must be 1-dimensional.
Whether to copy values.
Attributes
None |
Methods
None |
Examples
>>> pd.arrays.NumpyExtensionArray(np.array([0, 1, 2, 3]))
<NumpyExtensionArray>
[0, 1, 2, 3]
Length: 4, 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.arrays.NumpyExtensionArray.html