I am trying to convert a column "value $" from datatype "Object" to "float" as this column would be involved in a numeric computation.
I initially replaced "$" in this column using:
df['Value $'] = df['Value $'].replace({'\$': ''},regex=True)
Then convert it into numeric using:
df['Value $'] = df['Value $'].astype(dtype=np.float64)
