I need to remove ‘$’ symbol in ‘price’ column. I used pd.DataFrame.replace to do that.
Why did nothing happen?
If I use str.replace it works: str.replace
Advertisement
Answer
Try this :
listings['price'].str.replace({'$':''},regex=True,inplace=True)