juniorPandas

Difference between Series and DataFrame in Pandas

Updated May 17, 2026

Short answer

A Series is 1D labeled data; a DataFrame is a 2D table made of multiple Series.

Deep explanation

A Series represents a single column with an index, while a DataFrame is a collection of Series sharing the same index. DataFrames support multiple columns and heterogeneous data types.

Real-world example

A Series could represent daily temperatures, while a DataFrame represents a full weather dataset with multiple attributes.

Common mistakes

  • Treating Series like lists without considering index alignment behavior.

Follow-up questions

  • Can a DataFrame contain different data types?
  • How is indexing different between Series and DataFrame?

More Pandas interview questions

View all →