datatable.Frame.to_list()¶
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]]
The content on this page is licensed under the Creative Commons Attribution 4.0 License
(CC BY 4.0) ,
and code samples are licensed under the MIT License.