# Filter: Keep only transactions where Quantity is positive (i.e., sales, not returns) df = df[df[‘Quantity’] > 0] # Filter: Keep only transactions where UnitPrice is positive (i.e., not free or an error) df = df[df[‘UnitPrice’] > 0] print(f”Dataframe size after filtering: {len(df)} rows.”)