I want to search for multiple signs in my dataset with pandas. For example when I search for multiple explanation points I use this script that works:
df_double=df[df["text"].str.contains("!!")==True]
df_double
But when I want to change this script to search for multiple question marks, I get an error:
df_double=df[df["text"].str.contains("??")==True]
df_double
What is wrong with this script?