Updated 2022-05-22 0
Viewed 4 times

I was able to perform the conversion for 6 of the 7 columns that my dataframe has,but I get the following problem with one:

df = pd.read_csv('Copia de Base (1).csv',sep=';',header=0,parse_dates=True)
df =df.replace(to_replace=',', value='.', regex=True)
argentina= df[df['Site']=='Argentina']  
argentina[['Costo total (USD)','CPA','Clicks','Impresiones']]=argentina[['Costo total (USD)','CPA','Clicks','Impresiones']].astype(float)

Only the conversion of the "clicks" column is not performed,What may be the reason?

enter image description here

🔴 No definitive solution yet