Complete the code to drop the column named 'Age' from the DataFrame df.
df = df.drop([1], axis=1)
To drop a column by name, pass the column name as a string and set axis=1.
Complete the code to drop the row with index label 3 from the DataFrame df.
df = df.drop([1], axis=0)
To drop a row by index label, pass the label as an integer and use axis=0 (rows).
Fix the error in the code to drop the column 'Salary' from df.
df.drop([1], axis=1, inplace=True)
The column name must be a string matching exactly the column label. Use 'Salary'.
Fill both blanks to create a dictionary comprehension that maps words to their lengths only if the length is greater than 3.
{word: [1] for word in words if [2]The dictionary maps each word to its length (len(word)) only if the length is greater than 3 (len(word) > 3).
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their counts only if the count is greater than 0.
{ [1]: [2] for [3] in data.items() if [2] > 0 }The dictionary maps uppercase keys (k.upper()) to their values (v) only if the value is greater than 0. The loop variable is k.