Complete the code to get the number of rows and columns in the DataFrame.
print(df.[1])
The shape attribute gives the number of rows and columns as a tuple.
Complete the code to see the data types of each column in the DataFrame.
print(df.[1])
The dtypes attribute shows the data type of each column.
Fix the error in the code to get summary statistics of the DataFrame.
summary = df.[1]()The describe() method returns summary statistics like mean, count, and std.
Fill both blanks to create a dictionary with word lengths for words longer than 3 letters.
lengths = {word: [1] for word in words if len(word) [2] 3}The dictionary comprehension uses len(word) for values and filters words with length greater than 3.
Fill all three blanks to create a dictionary with uppercase keys and values greater than 0.
result = {{'{'}[1]: [2] for k, v in data.items() if v [3] 0{{'}'}}The dictionary comprehension uses uppercase keys with k.upper(), keeps values v, and filters values greater than 0.