# DataFrame

*noun*

say it: **“DAY-tuh-fraym”** **/ˈdeɪtəˌfreɪm/**

In pandas, a table of data with named columns and a label for each row, like one sheet of a spreadsheet.

## What is a **DataFrame**?

A **DataFrame** is pandas' table: named columns, and a label for each row called its index, like one sheet of a
spreadsheet inside your program.

```python
import pandas as pd
sales = pd.DataFrame({"store": ["Main", "Elm"], "cups": [620, 410]})
print(sales)
#   store  cups
# 0  Main   620
# 1   Elm   410
```

## In a sentence

- “read_csv gave her a **DataFrame** with one row per sale.”
- “The **DataFrame** showed store, date and cups as columns.”

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/dataframe
