remove character and space from dataframe column values and keep float code example Example: how can i remove random symbols in a dataframe in Pandas df=df.replace('\*','',regex=True)