polars.DataFrame.rows

DataFrame.rows() List[Tuple]

Convert columnar data to rows as python tuples.

Examples

>>> df = pl.DataFrame(
...     {
...         "a": [1, 3, 5],
...         "b": [2, 4, 6],
...     }
... )
>>> df.rows()
[(1, 2), (3, 4), (5, 6)]