Remove Symbols

content = "This device is costing only 12.89$. This is fantastic!"
content
'This device is costing only 12.89$. This is fantastic!'
import re
re.sub(r'[^\w]', ' ', content)
'This device is costing only 12 89   This is fantastic '

Note:

\w will match alphanumeric characters and underscores

[^\w] will match anything that’s not alphanumeric or underscore