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

@ianh at thiscodeWorks.com