Match List-I with List-II
List-I List-II (A) rename() (I) To display rows of a series from the top. (B) tail() (II) To change the name of a row or column in a DataFrame. (C) drop() (III) To display rows of a DataFrame from the bottom. (D) head() (IV) To delete a row or column in a DataFrame.
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) rename() | (I) To display rows of a series from the top. |
| (B) tail() | (II) To change the name of a row or column in a DataFrame. |
| (C) drop() | (III) To display rows of a DataFrame from the bottom. |
| (D) head() | (IV) To delete a row or column in a DataFrame. |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) rename() | (II) To change the name of a row or column in a DataFrame. |
| (B) tail() | (III) To display rows of a DataFrame from the bottom. |
| (C) drop() | (IV) To delete a row or column in a DataFrame. |
| (D) head() | (I) To display rows of a series from the top. |
head() and tail() are easily swapped: head = top rows, tail = bottom rows (the last 5 by default).
Related questions:
2026: 23 May Shift 2