Pandas: How to remove rows from a dataframe based on a list? December 31, 2023 by Tarik You need new_df = sales[~sales.CustomerID.isin(badcu)]