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')]