bigframes.pandas.Index.ndim#
- property Index.ndim: int#
Number of dimensions of the underlying data, by definition 1.
Examples:
>>> s = bpd.Series(['Ant', 'Bear', 'Cow']) >>> s 0 Ant 1 Bear 2 Cow dtype: string
>>> s.ndim 1
For Index:
>>> idx = bpd.Index([1, 2, 3]) >>> idx Index([1, 2, 3], dtype='Int64')
>>> idx.ndim 1
- Returns:
Number or dimensions.
- Return type: