I have a dataframe(df) like
col1, col2
a,1
b,2
I want to make it to a list of list like:
[
[a, 1],
[b, 2]
]
How can I do this?
I have a dataframe(df) like
col1, col2
a,1
b,2
I want to make it to a list of list like:
[
[a, 1],
[b, 2]
]
How can I do this?
Use :
>>> df.values.tolist()