datatable.Frame.to_list()

Convert the frame into a list of lists, by columns.

Parameters

return
List[List]

A list of .ncols lists, each inner list representing one column of the frame.

Examples

DT = dt.Frame(A=[1, 2, 3], B=["aye", "nay", "tain"]) DT.to_list()
[[1, 2, 3], ["aye", "nay", "tain"]]
dt.Frame(id=range(10)).to_list()
[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]]