Match List-I with List-II with respect to Pandas Series attributes
List-I - Attribute List-II - Functioning (A) series.empty (I) assigns a name to the series (B) series.name (II) checks whether a series is empty or not (C) series.index.name (III) prints a list of the values in the series (D) series.values (IV) assigns a name to the index of the series
Match List-I with List-II with respect to Pandas Series attributes
| List-I - Attribute | List-II - Functioning |
|---|---|
| (A) series.empty | (I) assigns a name to the series |
| (B) series.name | (II) checks whether a series is empty or not |
| (C) series.index.name | (III) prints a list of the values in the series |
| (D) series.values | (IV) assigns a name to the index of the series |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) series.empty | (II) checks whether a series is empty or not |
| (B) series.name | (I) assigns a name to the series |
| (C) series.index.name | (IV) assigns a name to the index of the series |
| (D) series.values | (III) prints a list of the values in the series |
series.name labels the Series itself, while series.index.name labels its index. Students often swap these two.
Related questions:
2026: 23 May Shift 2
2025: 3 June Shift 2
2025: 30 May Shift 2