In the Pandas library of Python, which data structure is two-dimensional in…
2026
In the Pandas library of Python, which data structure is two-dimensional in nature and used to store data in a tabular format (rows and columns)?
- A.
List
- B.
Tuple
- C.
Series
- D.
DataFrame
Attempted by 605 students.
Show answer & explanation
Correct answer: D
The correct answer is DataFrame.
In the Pandas library, a DataFrame is a two-dimensional data structure. It is used to store data in a tabular format consisting of rows and columns, similar to a table or spreadsheet. Each column can have a different data type, and both rows and columns are labeled, making it highly suitable for data analysis and manipulation.