pandas.Series.__array__
pandas 3.1.1 · Series and accessors · method
Expose values through NumPy's array protocol.
Call syntax
Series.__array__(dtype=None, copy=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
dtype |
Optional Positional or keyword Default None |
str or numpy.dtype Choose the data type for the input conversion or result. |
copy |
Optional Positional or keyword Default None |
bool or None Control whether data is copied where the API supports that choice. |
Returns
numpy.ndarray