checking special characters in python code example
Example: python - count values that contain special characters
special = '[(_:/,#%\=@)]' # Define special characters
df['count'] = df['myvar'].str.count(special) # Count them
special = '[(_:/,#%\=@)]' # Define special characters
df['count'] = df['myvar'].str.count(special) # Count them