I want to convert multiple columns from strings to float
I tried:
df[1,4,7,10,13]= pd.to_numeric(df[1,4,7,10,13], downcast="float")
or:
df[1,4,7,10,13]= df[1,4,7,10,13].astype(float)
but none of these works. I want to actually convert all the 1+3*x columns to float. anyone has idea?