I have several lists and I want to create only one Dataframe to export later.
The lists are of the type:
a=[1, 2, 3, 4, 5, 6, 7, 8]
b=[9, 10, 11, 12, 13, 14, 15, 16]
For this I am creating 2 dataframes in the following way:
export=pd.DataFrame(a, columns=['A'])
export2=pd.DataFrame(b, columns=['B'])
My problem is that I have many lists and I would like to make only one Dataframe in this way:
export=pd.DataFrame(a, b, columns=['A', 'B'])
But I miss an error, dimension:
ValueError: Shape of passed values is (1, 600), indices imply (2, 576)