Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) Deleting Rows or Columns from a DataFrame.(I) tail(n)
(B) Renaming Row Labels of a DataFrame.(II) drop()
(C) Joining, Merging and Concatenation of DataFrames.(III) rename()
(D) To display the last 'n' rows in the DataFrame.(IV) append()

Solution

✅ Correct Option: 4
List IList II
(A) Deleting Rows or Columns from a DataFrame(II) drop()
(B) Renaming Row Labels of a DataFrame(III) rename()
(C) Joining, Merging and Concatenation of DataFrames(IV) append()
(D) To display the last 'n' rows in the DataFrame(I) tail(n)

drop() removes rows (axis=0) or columns (axis=1), while tail(n) is the counterpart of head(n) and shows the last n rows.

append() was the pandas method for adding one DataFrame's rows to another. It has been removed in recent pandas versions, where concat() is used instead.

Keyboard Shortcuts

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