import pandas as pd
# Group multiple columns and get statistics
df = df.groupby(["store", "type"])["weekly_sales"].sum()
# Group multiple columns and multiple statistics
df = df.groupby(["store", "type"])["weekly_sales"].agg([sum, min, max])
# Display DataFrame
print(df)