Skip to main contentSkip to solution

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question