pandas

noun

say it: “PAN-duz” /ˈpændəz/

A popular Python package for working with tables of data, such as reading a spreadsheet's rows and then sorting, filtering and adding them up.

What is pandas?

pandas is the Python package most analysts use for tables of data. It reads a CSV file into a DataFrame, then sorts, filters, totals and charts it in a line or two.

import pandas as pd
sales = pd.read_csv("coffee_sales.csv")
print(sales["cups"].sum())   # every cup sold, such as 1240

In a sentence

  • “With pandas, the café's month of sales loaded in one line.”
  • “She used pandas to find which store sold the most.”

Level: Journeyman · More Python terms at this level

Updated