Match List-I with List-II
List-I List-II (A) df.fillna(method='pad') (I) Will remove the entire row (object) having the missing value(s) from the DataFrame. (B) df.fillna(method='bfill') (II) Makes changes in the original DataFrame. (C) inplace=true (III) Replaces the missing value by the value after the missing value. (D) dropna() (IV) Replaces the missing value by the value before the missing value.
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) df.fillna(method='pad') | (I) Will remove the entire row (object) having the missing value(s) from the DataFrame. |
| (B) df.fillna(method='bfill') | (II) Makes changes in the original DataFrame. |
| (C) inplace=true | (III) Replaces the missing value by the value after the missing value. |
| (D) dropna() | (IV) Replaces the missing value by the value before the missing value. |
Solution
✅ Correct Option: 3
| List I | List II |
|---|---|
| (A) df.fillna(method='pad') | (IV) Replaces the missing value by the value before the missing value. |
| (B) df.fillna(method='bfill') | (III) Replaces the missing value by the value after the missing value. |
| (C) inplace=true | (II) Makes changes in the original DataFrame. |
| (D) dropna() | (I) Will remove the entire row (object) having the missing value(s) from the DataFrame. |
pad is the same as ffill (forward fill): it carries the previous value forward. bfill is backward fill: it pulls the next value back.
Related questions:
2026: 20 May Shift 1