Class Index (0.4.0)

Index(data: bigframes.core.blocks.BlockHolder)

Immutable sequence used for indexing and alignment.

The basic object storing axis labels for all objects.

Properties

empty

Returns True if the Index is empty, otherwise returns False.

is_monotonic_decreasing

Return a boolean if the values are equal or decreasing.

is_monotonic_increasing

Return a boolean if the values are equal or increasing.

is_unique

Return if the index has unique values.

name

Returns Index name.

names

Returns the names of the Index.

nlevels

Number of levels.

shape

Return a tuple of the shape of the underlying data.

size

Returns the size of the Index.

Methods

to_numpy

to_numpy(dtype=None, **kwargs) -> numpy.ndarray

A NumPy ndarray representing the values in this Series or Index.

to_pandas

to_pandas() -> pandas.core.indexes.base.Index

Gets the Index as a pandas Index.

Returns
TypeDescription
pandas.IndexA pandas Index with all of the labels from this Index.