🍾 Xarray is now 10 years old! 🎉

xarray.IndexVariable.size

xarray.IndexVariable.size#

property IndexVariable.size#

Number of elements in the array.

Equal to np.prod(a.shape), i.e., the product of the array’s dimensions.