Question:

Which of the following data structure is used for storing one-dimensional labelled data in Python Pandas ?

Show Hint

Think of a Series as a single column and a DataFrame as a table with multiple columns.
Updated On: July 22, 2025
  • Integer
  • Dictionary
  • Series
  • DataFrame
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

In Python’s Pandas library, the basic data structures are Series and DataFrame.
- A Series is a one-dimensional labelled array that can hold any data type — integers, floats, strings, etc.
- It is similar to a column in an Excel sheet or a single column in a DataFrame.
- A DataFrame is a two-dimensional labelled data structure with columns of potentially different types.
Therefore, for storing one-dimensional labelled data, Series is the correct structure.
An Integer is just a single numeric value, not a structure.
A Dictionary is a key-value pair structure in Python but is not a Pandas Series.
So, the correct answer is Series.
Was this answer helpful?
0
0

Top Questions on Python Libraries

View More Questions

CBSE CLASS XII Notification