Skip to content

Home / Glossary / DataFrame

Python

DataFrame

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"]})

Practise DataFrame hands-on — free, in your browser

Related terms