python check special characters 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