Question: I'm trying to replace symbols from object in python, I used

```
df_summary.replace('\(|\)!,"-', '', regex=True)

```

[![enter image description here](https://i.stack.imgur.com/vozsS.jpg)](https://i.stack.imgur.com/vozsS.jpg)

but it didn't change anything.

Answer: 
You can either do

```
df_summary.replace('\(|\)!,"-', '', regex=True, inplace=True)

```

or

```
df_summary = df_summary.replace('\(|\)!,"-', '', regex=True)

```

When you only do `df_summary.replace...`, this line returns you a pandas list. You forgot to save it. Please add comments to further assist you
Apart from addind `regex=True` or setting the result to `df_summary` again, your are using a pattern:

```
`\(|\)!,"-` 

```

That matches matches either `(` OR the string `\)!,"-`

As you are referring to symbols, and you want to replace all separate chars `(` `)` `!` `,` `"` `-` you can use a repeated character class `[()!,"-]+` to replace multiple consecutive matches at once.

```
df_summary.replace('[()!,"-]+', '', regex=True, inplace=True)

```