DataFrame
By Sitraka Forler · Lecturer, Durham Business SchoolUpdated 13 September 2026 About this site
Pandas 2D table structure with labelled rows and columns.
A DataFrame is the core data structure in pandas. Think of it as a spreadsheet in Python. Columns can hold different data types, and rows are indexed for fast lookup and alignment.
Example
df = pd.DataFrame({"price": [100, 102], "ticker": ["AAPL", "MSFT"]})