bigframes.pandas.Index.size#

property Index.size: int#

Return the number of elements in the underlying data.

Examples:

For Series:

>>> s = bpd.Series(['Ant', 'Bear', 'Cow'])
>>> s
0     Ant
1    Bear
2     Cow
dtype: string

For Index:

>>> idx = bpd.Index([1, 2, 3])
>>> idx
Index([1, 2, 3], dtype='Int64')
Returns:

Number of elements

Return type:

int