Question:medium

In data handling, pandas support index values.

Show Hint

In Pandas, a label can repeat in the index. It does not have to be unique.
Updated On: Oct 1, 2026
  • Unique
  • Non-unique
  • Homogeneous
  • NaN
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: What the question asks.
We must fill the blank about the kind of index values that Pandas can hold.

Step 2: Recall the textbook point.
The usual list of Series features says that index labels need not be unique and the values can be of any data type.

Step 3: Test in Python.
Create s = pd.Series([10, 20, 30], index=['x', 'x', 'y']). Python runs it and shows x twice. Pandas has not raised any error.

Step 4: Read the result.
Selecting s['x'] returns a small Series with both entries. So duplicates in the index are accepted.

Step 5: Drop the weaker choices.
Unique is a restriction that Pandas does not apply. Homogeneous describes data type uniformity. NaN is not a kind of index that Pandas is described to support.

Step 6: Conclude.
The blank is filled by Non-unique, the second printed option.

Step 7: Why each wrong option fails.
Unique would be a rule that Pandas enforces, but Pandas enforces no such rule. Homogeneous describes the type of data in a NumPy array. NaN is a missing value marker and not a property that the index is said to support. So only Non-unique is correct.

Final Answer:
The blank is filled by Non-unique, option 2. \[ \boxed{2} \]
Was this answer helpful?
0


Questions Asked in CUET (UG) exam