What is the primary difference between a Pandas Series and a Pandas DataFrame?

2026

What is the primary difference between a Pandas Series and a Pandas DataFrame?

Answer: B. A series is a 1D array-like object with labels, whereas a DataFrame is a 2D table-like structure with rows and columns.

  1. A.

    A series is 3D, while a DataFrame is 2D.

  2. B.

    A series is a 1D array-like object with labels, whereas a DataFrame is a 2D table-like structure with rows and columns.

  3. C.

    DataFrames can only store numbers, while series can store any data type.

  4. D.

    Series are used for time-series data only, while DataFrames are for static data.

Attempted by 239 students.

Show answer & explanation

Correct answer: B

Explore the full course: Bpsc

Loading lesson…