Complete the code to load the CSV file into a DataFrame.
import pandas as pd df = pd.[1]('data.csv')
Use pd.read_csv to load CSV files into a DataFrame.
Complete the code to show the first 5 rows of the DataFrame.
print(df.[1]())
The head() method shows the first 5 rows by default.
Fix the error in the code to calculate the mean of the 'age' column.
mean_age = df['age'].[1]()
The mean() method calculates the average value.
Fill both blanks to create a dictionary of word lengths for words longer than 3 letters.
lengths = {word: [1] for word in words if [2]Use len(word) to get length and filter words with length greater than 3.
Fill all three blanks to create a filtered dictionary with uppercase keys and values greater than 0.
result = [1]: [2] for k, v in data.items() if v [3] 0}
Keys are converted to uppercase with k.upper(), values kept as v, and filtered where v > 0.
