I am trying to clean my data which contains by making the columns[1:] float types.
for col_i in new_col_titles[1:]:
df[col_i] = df[col_i].astype(float)
However, I get the following error.
ValueError: could not convert string to float: '\xa0$ 25,507,036'
I have tried to use df = df.replace('\x0$','')
but I have so far had no luck