I have a list with two columns, with this structure:
....'2011-10-18', '99,610000', '', '2011-10-17', '99,680000', '', '2011-10-14', '99,870000', '', '2011-10-13', '100,000000', '']
To try to convert it into a DataFrame I execute this code:
df = pd.DataFrame(cotiz)
The DataFrame created is only one column:
0 2017-10-30
1 177.480000 2 2017-10-27 3 177.460000 4 2017-10-26 5 177.04 million 6 2017-10-25
If I do
df = pd.DataFrame(cotiz, columns=['Fecha', 'Valor'])
I get the following error:
ValueError: Shape of passed values is (1, 3032), indices imply (2, 3032)
I will appreciate your suggestions to get a Dataframe with two columns, "Date" and Value ".