Match List-I with List-II
List-I List-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()
Match List-I with List-II
| List-I | List-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 I | List 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.
Related questions:
2025: 20 May Shift 1
2026: 24 May Shift 1
2025: 3 June Shift 2