I am trying to convert a column to float from str type. I am using .loc because there is a SettingWithCopyWarning error. But after using .loc, the warning still did not disappear. Can you guys please help me to see where the problem is?
The line I am using to convert column "A" is as follows:
df.loc[:, "A"] = pd.to_numeric(df.loc[:, "A"].copy())
Column "A" has bunch of numbers who are currently in str format.