Match List-I with List-II
List-I List-II (A). Head (I). To display dimensionality of a DataFrame (B). Tail (II). To display the first 'n' elements of a DataFrame (C). Shape (III). To display the total number of elements in a DataFrame (D). Size (IV). To display the last 'n' elements of a DataFrame
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A). Head | (I). To display dimensionality of a DataFrame |
| (B). Tail | (II). To display the first 'n' elements of a DataFrame |
| (C). Shape | (III). To display the total number of elements in a DataFrame |
| (D). Size | (IV). To display the last 'n' elements of a DataFrame |
Solution
✅ Correct Option: 4
| List I | List II |
|---|---|
| (A) Head | (II) To display the first 'n' elements of a DataFrame |
| (B) Tail | (IV) To display the last 'n' elements of a DataFrame |
| (C) Shape | (I) To display dimensionality of a DataFrame |
| (D) Size | (III) To display the total number of elements in a DataFrame |
Shape returns a tuple , while size returns rows columns, the total number of elements.
Related questions:
2025: 3 June Shift 2
2026: 26 May Shift 1