Complete the code to import the pandas library, which is used for data analysis in Python.
import [1] as pd
We use pandas for data analysis in Python. Importing it as pd is a common practice.
Complete the code to read a CSV file named 'data.csv' into a pandas DataFrame.
df = pd.[1]('data.csv')
The read_csv function loads CSV files into a DataFrame.
Fix the error in the code to calculate the mean of the 'Age' column in the DataFrame.
mean_age = df['Age'].[1]()
The mean() function calculates the average value of the column.
Fill both blanks to create a dictionary comprehension that maps each word to its length if the length is greater than 3.
{word: [1] for word in words if [2] > 3}We use len(word) to get the length of each word and check if it's greater than 3.
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their counts if the count is greater than 1.
{ [1]: [2] for [3], [2] in word_counts.items() if [2] > 1 }The key is the uppercase word (word.upper()), the value is the count (count), and the loop variables are word and count.