pandas.Index.size

property Index.size: int

Return the number of elements in the underlying data.