pandas

pandas is a popular Python library for working with structured, table-like data. It provides the DataFrame, making it easy to load, clean, transform, and analyze datasets.

Data & AI

pandas is the go-to tool for data preparation in machine learning and data science. It reads data from CSV, Excel, databases, and more, and lets you filter, group, merge, and summarize with readable code.

Most ML projects start in pandas: you load raw data, handle missing values, engineer features, and then convert the cleaned table into arrays for the model. It's usually imported with the alias 'pd'.

Examples

Python

import pandas as pd

df = pd.DataFrame({"score": [80, 90, 100]})
print("mean:", df["score"].mean())

Output:

mean: 90.0

Learn it in a lesson

See also

Back to the Dictionary