datatable.Frame.to_tuples()

Convert the frame into a list of tuples, by rows.

Parameters

return
List[Tuple]

Returns a list having nrows tuples, where each tuple has length ncols and contains data from each respective row of the frame.

Examples

DT = dt.Frame(A=[1, 2, 3], B=["aye", "nay", "tain"])
DT.to_tuples()
[(1, "aye"), (2, "nay"), (3, "tain")]