bigframes.pandas.Index.tolist#

Index.tolist(*, allow_large_results: bool | None = None) → list#

Return a list of the values.

These are each a scalar type, which is a Python scalar (for str, int, float), a pandas scalar (for Timestamp/Timedelta/Interval/Period), or a tuple for MultiIndex.

Examples:

>>> idx = bpd.Index([1, 2, 3])
>>> idx.tolist()
[1, 2, 3]
>>> midx = bpd.MultiIndex.from_tuples([(1, 'red'), (2, 'blue')])
>>> midx.to_list()
[(1, 'red'), (2, 'blue')]
>>> midx.tolist()
[(1, 'red'), (2, 'blue')]
Parameters:

allow_large_results (bool, default None) – If not None, overrides the global setting to allow or disallow large query results over the default size limit of 10 GB.

Returns:

A list of the values.

Return type:

list