pandas.api.extensions.ExtensionArray.size#

property ExtensionArray.size[source]#

The number of elements in the array.

For 1-dimensional ExtensionArrays, this is the same as len(self). It is included for compatibility with NumPy.

See also

ExtensionArray.shape

Return a tuple of the array dimensions.

ExtensionArray.ndim

Number of dimensions of the array.

Examples

>>> arr = pd.array([1, 2, 3])
>>> arr.size
np.int64(3)