Skip to main content

removing_data_from_datasets

In order to remove all rows where the field 'Quantity' is equal to 0 we can do:

df.drop(df[df['Quantity'] == 0].index)