In this exercise, you will identify the maximum and minimum values from the "Purchase Amount (USD)" column. This will help you understand the range of purchase amounts in the dataset.
Calculate Maximum Purchase Amount:
Use the max() function to find the highest purchase amount.
Print the result.
Calculate Minimum Purchase Amount:
Use the min() function to find the lowest purchase amount.
Print the result.
Python Code:
#1.Finding Maximum purchase amount:
import pandas as pd
max_purchase = df['Purchase Amount (USD)'].max()
max_purchase
#2.Finding Minimum purchase amount:
import pandas as pd
min_purchase = df['Purchase Amount (USD)'].min()
min_purchase