Complete the code to load the CSV file into a DataFrame.
import pandas as pd data = pd.[1]('data.csv')
We use pd.read_csv to load CSV files into a DataFrame.
Complete the code to show the first 5 rows of the DataFrame.
print(data.[1]())
The head() method shows the first 5 rows by default.
Fix the error in the code to get summary statistics of the DataFrame.
summary = data.[1]()The describe() method returns summary statistics like mean and count.
Fill both blanks to create a dictionary of word lengths for words longer than 3 characters.
lengths = {word: [1] for word in words if len(word) [2] 3}We want the length of each word (len(word)) and only words longer than 3 (len(word) > 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 are v, and we filter values greater than 0 using >.
