Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

transform data frame in list

import pandas as pd

df = pd.DataFrame({'a': [1, 3, 5, 7, 4, 5, 6, 4, 7, 8, 9],
                   'b': [3, 5, 6, 2, 4, 6, 7, 8, 7, 8, 9]})

print(df['a'].to_list())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #transform #data #frame #list
ADD COMMENT
Topic
Name
7+6 =