In this exercise, you will analyze the "Gender" and "Age" columns from the dataset. Follow the instructions below to complete the tasks:
Find Unique Values:
Use the unique() function to get all distinct values in the "Gender" column.
Print the result.
Calculate Summary Statistics:
Use the describe() function to calculate summary statistics for the "Age" column.
Print the summary statistics to understand the distribution of ages.
Python Code:
# 1. Find unique values in the 'Gender' column
import pandas as pd
unique_genders = df['Gender'].unique()
print("Unique Genders:", unique_genders)
# 2. Display summary statistics for the 'Age' column
import pandas as pd
age_stats = df['Age'].describe()
print("Age Statistics:\n", age_stats)