Complete the code to drop missing values from the DataFrame inplace.
df.dropna([1]=True)
Using inplace=True modifies the DataFrame directly without needing to assign it back.
Complete the code to fill missing values with 0 inplace.
df.fillna([1]=0, inplace=True)
The value parameter specifies what to replace missing values with.
Fix the error in the code to sort the DataFrame by 'age' inplace.
df.sort_values(by='age', [1]=True)
To sort the DataFrame inplace, use inplace=True.
Fill both blanks to create a new DataFrame with duplicates removed without changing the original.
new_df = df.drop_duplicates([1]=False, [2]=False)
Setting keep=False removes all duplicates, and ignore_index=False keeps original index.
Fill all three blanks to create a dictionary of word lengths for words longer than 3 characters.
lengths = { [1]: [2] for [3] in words if len([3]) > 3 }This dictionary comprehension uses 'word' as the key and its length as the value for words longer than 3 characters.