Skip to main contentSkip to solution

Match List-I with List-II

List-IList-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 IList 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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question