What is a Series?
Imagine a Pandas Series as a highly organised, single column of data. It's not just a simple list — it comes with its own built-in way to keep track of every single item.
A list where every item wears a name tag
1Every Series has two core parts
A Series is a 1-dimensional structure — it extends in just one direction, like a single column in a spreadsheet. That single column is really two aligned columns working together:
- 🔵 The Data— the actual values you're storing (numbers, text, dates, anything).
- 🟣 The Index (data labels) — a label for every value. By default Pandas numbers them
0, 1, 2, …, but you can give your own meaningful labels like'Jan'or'Amit'.
Every value carries its own label. Hover a row to see the pairing — then switch the index.
Both columns always have the same length — every value has exactly one label, and one label only.
2Perfectly matched lengths
The data and the index are always the same length. Every value has one — and only one — label, and every label points at exactly one value. That tight pairing is what lets you fetch data by its label instead of counting positions.
dtype line telling you what kind of data the Series holds. You'll meet dtype properly soon.3Default index vs custom labels
If you don't supply an index, Pandas quietly creates one for you: 0, 1, 2, 3…. Supplying your own labels doesn't remove those positions — it just adds a friendlier name on top (you'll see both at work when we reach indexing).
What are the two core components of every Pandas Series?