pandas.api.extensions.ExtensionArray.view
pandas 3.1.1 · Extensions · method
Expose an alternate view or representation subject to the object's dtype and storage rules.
Call syntax
pd.api.extensions.ExtensionArray.view(dtype=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, np.dtype, or ExtensionDtype Choose the data type for the input conversion or result. |
Returns
ExtensionArray or np.ndarray