← NumPy & Pandas learning path
NumPy & Pandas · Module 3 of 10

Pandas Series and DataFrames

Pandas gives labelled tables for data analysis.

📖 Key ideas

  1. import pandas as pd.
  2. Series is one labelled column; DataFrame is a table.
  3. Create: pd.DataFrame({"name": [...], "marks": [...]}).
  4. Read files: pd.read_csv, read_excel, read_json.
  5. 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