open_in_new
content_copy
df[~df.C.str.contains("XYZ", na=False)]