I have a dataframe column price
which has a value like $783024.20
...
This is a string with datatype as object..
test =
0. price
1. '$783024.20'
dtype = object
test['price'].astype(float)
getting an error:
could not convert string to float: '$783024.20'
what can I do for this, as I thought this would work?