SyntaxFix
Write A Post
Hire A Developer
Questions
new_df = df[df.C != 'XYZ']
Reference: https://chrisalbon.com/python/data_wrangling/pandas_dropping_column_and_rows/