Learn to use the OR (|) operator to combine multiple conditions when filtering data in pandas.
Filter the DataFrame to display rows where:
Age is under 30
OR Purchase Amount (USD) is more than $300
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