In this exercise, you will filter data based on specific conditions to analyze customer groups. This will help you identify patterns and target customer segments.

Instructions:

  1. Filter Customers Above Age 30:

  2. Filter High Spenders (Spending over $90):

Python Code:

# 1. Filter customers above age 30

import pandas as pd

filtered_customers = df[df['Age'] > 30]

filtered_customers.head()


# 2. Filter customers who spent more than $90

import pandas as pd

high_spenders = df[df['Purchase Amount (USD)'] > 90]

high_spenders.head()