I am trying to remove the following characters from my dataframe- {space, ", ', \n, * and }. I am able to do it for the first four characters, but getting error for * and . Please help. The code I am using is-
df = df.replace(to_replace = ["'",'"'," ","\n","*","\"], value = ["","","","",""], regex=True)
also tried "\" inplace of "", still getting error.