Complete the code to fill missing values in the 'score' column using linear interpolation.
df['score'] = df['score'].[1]()
The interpolate() method fills missing numeric values by estimating intermediate values linearly.
Complete the code to interpolate missing values in the 'temperature' column using the 'time' method.
df['temperature'] = df['temperature'].interpolate(method=[1])
The 'time' method uses the index as time values to interpolate missing data points.
Fix the error in the code to interpolate missing values forward in the 'humidity' column.
df['humidity'] = df['humidity'].interpolate(method=[1], limit_direction='forward')
The 'ffill' method propagates last valid observation forward to fill gaps.
Fill both blanks to create a dictionary comprehension that maps words to their lengths only if length is greater than 3.
lengths = {word: [1] for word in words if [2]The dictionary comprehension assigns each word's length as value and filters words longer than 3 characters.
Fill all three blanks to create a dictionary comprehension that maps uppercase keys to values only if value is positive.
result = [1]: [2] for [3] in data.items() if [2] > 0}}
The comprehension uses uppercase keys, values from the dictionary, and iterates over key-value pairs.