Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe to list of lists

>>> df = pd.DataFrame([[1,2,3],[3,4,5]])
>>> lol = df.values.tolist()
>>> lol
[[1L, 2L, 3L], [3L, 4L, 5L]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataframe #list #lists
ADD COMMENT
Topic
Name
2+4 =