Objective:

Learn to use the OR (|) operator to combine multiple conditions when filtering data in pandas.

Task:

  1. Filter the DataFrame to display rows where:

  2. Print the rows of the filtered DataFrame to verify the result.


Python Code:


three_hundred_customers = df[(df['Age'] < 30) | (df['Purchase Amount (USD)'] > 300)]

three_hundred_customers