pandas.api.extensions.ExtensionArray.ndim#

property ExtensionArray.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