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