pandas.Index.size
- property Index.size
Return the number of elements in the underlying data.
Examples
For Series:
>>> s = pd.Series(['Ant', 'Bear', 'Cow']) >>>
Return the number of elements in the underlying data.
For Series:
>>> s = pd.Series(['Ant', 'Bear', 'Cow'])
>>>
For Index:
>>> idx = pd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='int64')
>>> idx.size
3