Aug-28-2019, 12:00 PM
You need to get rid of the commas in the strings
df['GER30_Open_float'] = df['GER30_Open'].str.replace(',', '').astype(float)As already mentioned if using pandas.read_csv() you can use parameter thousands=',' to get rid of the commas
df = pandas.read_csv('example.csv', thousands=',')