I'm using netfilx dataset. uploaded by VICTOR SOEIRO on KAGGLE. I want to make new datasets based on genres . For example, I want new dataframe if genres contain word ['comedy'] or ['comedy','fantasy'].
My_code
df_comedy = df[df['genres'].str.extract("'comedy'")]
It gives me this error. ValueError: pattern contains no capture groups
Ask me to provide more information, If you don't understand my question.
Thank you.