Answers for "python lists as dataframe rows"

0

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)
Posted by: Guest on July-12-2021

Code answers related to "python lists as dataframe rows"

Python Answers by Framework

Browse Popular Code Answers by Language