Complete the code to calculate the total sales using sum.
total_sales = df['sales'].[1]()
The sum() function adds all values in the 'sales' column to get the total sales.
Complete the code to find the average age using mean.
average_age = df['age'].[1]()
The mean() function calculates the average of the 'age' column.
Fix the error in the code to count the number of entries in the 'product' column.
product_count = df['product'].[1]()
The count() function counts the number of non-missing entries in the 'product' column.
Fill both blanks to create a dictionary with total and average sales.
sales_summary = {'total': df['sales'].[1](), 'average': df['sales'].[2]()}Use sum() to get total sales and mean() to get average sales.
Fill all three blanks to create a dictionary with count, total, and average of 'quantity'.
quantity_stats = {'count': df['quantity'].[1](), 'total': df['quantity'].[2](), 'average': df['quantity'].[3]()}Use count() to count entries, sum() for total quantity, and mean() for average quantity.
