Which of the following operations can be performed on a pandas series?
(A) Mathematical operations
(B) Indexing
(C) Adding a new column
(D) Slicing
Which of the following operations can be performed on a pandas series?
(A) Mathematical operations
(B) Indexing
(C) Adding a new column
(D) Slicing
Solution
✅ Correct Option: 1
A pandas Series is a one-dimensional labelled array. It supports mathematical operations (such as adding or multiplying two Series, or applying a scalar), indexing (by label or position, e.g. s['a'], s[0]), and slicing (e.g. s[1:4]).
(C) is the trap: columns exist only in a DataFrame, which is two-dimensional. A Series has just one dimension, so there are no columns to add.
Related questions:
2026: 18 May Shift 2
2025: 30 May Shift 2
2026: 31 May Shift 1
2026: 13 May Shift 2