Complete the code to check for missing values in the DataFrame column 'Age'.
missing_ages = df['Age'].[1]()
The isna() function returns a boolean Series showing which values are missing (NaN).
Complete the code to count how many missing values are in the 'Salary' column.
missing_count = df['Salary'].[1]().sum()
isna() returns True for missing values, and summing counts them.
Fix the error in the code to correctly detect missing values in the DataFrame 'df'.
missing_data = df.[1]()isna() detects missing values in the entire DataFrame.
Fill both blanks to create a dictionary with words as keys and the square of their length as values, only including words with length greater than 3.
result = {word: len(word) [1] 2 for word in words if len(word) [2] 3}The first blank uses ** to square the length. The second blank uses > to filter words longer than 3.
Fill all three blanks to create a dictionary with uppercase keys, values from the original dict, and only include items with values greater than 0.
result = [1]: [2] for k, v in data.items() if v [3] 0
k instead of k.upper() for keys.Keys are converted to uppercase with k.upper(), values are v, and only items with values greater than 0 are included.