LambdaLab
Informatics Practices · Class 12 · Python Pandas · Series
PandasSeries⏱️ 6 min read

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

A plain Python list remembers items only by their position (0, 1, 2…). A Series keeps that position and pins a label to every value — like a personalised ID card for each piece of data.

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'.
Anatomy of a Series

Every value carries its own label. Hover a row to see the pairing — then switch the index.

Index
0123
the labels
Data
MarkJustinJohnVicky
the values
Access by label
hover a row…

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.

series_intro.py
Tip
Notice the printout has two columns — the labels on the left, the values on the right — plus a 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).

Key Takeaway
A Series = data + an index of the same length. The index is the superpower that separates a Series from an ordinary list.
Quick Check

What are the two core components of every Pandas Series?