← NumPy & Pandas learning pathNumPy & Pandas · Module 3 of 10
Pandas Series and DataFrames
Pandas gives labelled tables for data analysis.
📖 Key ideas
- import pandas as pd.
- Series is one labelled column; DataFrame is a table.
- Create: pd.DataFrame({"name": [...], "marks": [...]}).
- Read files: pd.read_csv, read_excel, read_json.
- Inspect: head(), info(), describe(), shape.
💡 Real-life example: A DataFrame is an Excel sheet you can command with Python.
SeriesLabelled 1D array
DataFrame2D labelled table
read_csvLoads CSV into a DataFrame
describe()Summary statistics