1
I have a dataframe with a column with values:
0         411,90
1         394,88
2           0,01
3           0,01
In a csv file, all the columns of my df have 'Object' typing, when I try to convert the columns that have values like the one above the python answers me with the error:
df[coluna] = df[coluna].astype(float)
ValueError: could not convert string to float: '411,90'
I tried to import the file as follows:
df = pd.read_csv('base.csv', sep=';', encoding='UTF-8') 
But also I can’t convert the columns to float, anyone has any suggestions?