Skip to main content
`Ctrl`+`K`

# pandas.api.extensions.ExtensionArray.ndim

property ExtensionArray.ndim

  Extension Arrays are only allowed to be 1-dimensional.

  This property always returns 1 for ExtensionArrays, as they are constrained to a single dimension by design.

  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