Pandas is the spreadsheet of Python — the library data analysts and scientists live in. Built on NumPy, it adds labelled rows and columns, so you work with named fields and real-world data types instead of raw array positions. If you know Excel, pandas will feel familiar fast.
The problem it solves
Real data arrives messy: CSVs with missing values, mixed types, inconsistent labels, dates as strings. Pandas gives you fast, expressive tools to load, clean, reshape, join, group and summarise that data — the 80% of any data project that isn't modelling.
import pandas as pddf = pd.read_csv("students.csv") # load a messy CSV in one linedf.groupby("programme")["package"].mean() # answer a question in another
Where it fits
- Below it: NumPy provides the fast numeric arrays pandas is built on.
- Beside it: Matplotlib/Seaborn visualise the results.
- Above it: scikit-learn takes the cleaned DataFrame and trains models.
Key takeaways
- 01Pandas is Python's data-analysis library — labelled tables built on NumPy.
- 02It excels at loading, cleaning, reshaping, joining, grouping and summarising messy real data.
- 03It sits between NumPy (arrays underneath) and viz/ML tools (above).
- 04Import it as pd by convention.
