pandas.api.extensions.ExtensionArray.ndim#

propertyExtensionArray.ndim[source] #

Extension Arrays are only allowed to be 1-dimensional.

See also

ExtensionArray.shape

Return a tuple of the array dimensions.

ExtensionArray.size

The number of elements in the array.

Examples

>>> arr = pd.array([1, 2, 3])
>>> arr.ndim
1
On this page

This Page