Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python lists as dataframe rows

my_python_list = [['foo1', 'bar1'],
                  ['foo2', 'bar2']]
new_df = pd.DataFrame(columns=['my_column_name_1', 'my_column_name_2'], data=my_python_list)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #lists #dataframe #rows
ADD COMMENT
Topic
Name
3+6 =