Match List-I with List-II
List-I List-II (A) df.index (I) Display the first 'n' rows of the DataFrame (B) df.dtypes (II) Display a tuple representing the dimensionality (C) df.head (III) To display row labels (D) df.size (IV) To display type of each column in the DataFrame
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) df.index | (I) Display the first 'n' rows of the DataFrame |
| (B) df.dtypes | (II) Display a tuple representing the dimensionality |
| (C) df.head | (III) To display row labels |
| (D) df.size | (IV) To display type of each column in the DataFrame |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) df.index | (III) To display row labels |
| (B) df.dtypes | (IV) To display type of each column in the DataFrame |
| (C) df.head | (I) Display the first 'n' rows of the DataFrame |
| (D) df.size | (II) Display a tuple representing the dimensionality |
Strictly, the tuple of dimensions is given by df.shape, while df.size returns the total number of elements (rows x columns). Here (D) is left with (II) as the only remaining match once (A), (B) and (C) are fixed.
Related questions:
2025: 13 May Shift 2
2026: 13 May Shift 2
2026: 26 May Shift 1
2026: 13 May Shift 2