Updated 2022-05-22 0
Viewed 4 times
0

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)
df.fillna(0,inplace=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