Complete the code to check if there are any missing values in the DataFrame.
missing = df.[1]()The isnull() function returns a DataFrame of booleans indicating missing values.
Complete the code to count the number of missing values in each column.
missing_counts = df.isnull().[1]()The sum() function adds up True values (missing) per column.
Fix the error in the code to check if all values in column 'age' are positive.
all_positive = (df['age'] [1] 0).all()
We want to check if all ages are greater than 0, so use the '>' operator.
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 dictionary of uppercase keys and values greater than zero.
result = {{ [1]: [2] for k, v in data.items() if v [3] 0 }}Keys are uppercase (k.upper()), values are v, and filter values greater than zero (v > 0).