Skip to content

pandas

pandas is a Python package for working with tables of data, called DataFrames: loading them, filtering rows, picking columns and summarizing them.

Select any words here to ask your Maestro about them.

By convention it's imported as pd:

Python
import pandas as pddf = pd.read_csv("life_expectancy.csv")

If you come from R, a pandas DataFrame plays the role of a data.frame or a tibble, and many dplyr verbs have a pandas twin. Stata users: it's your dataset in memory, and you can hold as many tables as you like, each under its own name. Altair takes a pandas DataFrame directly: alt.Chart(df).

Ask your Maestro about pandas

It answers from a free course page that uses this word, the way it answers while you study.

Example

You: What does "pandas" mean, in plain words?

Your Maestro: I'll explain it with a case of yours: it sticks better than a definition. Shall we load your first CSV into a DataFrame?

Asking about: Answers from the page "How do you recompute an AI's number with pandas?"

Only this browser keeps what you ask here. How it works

In Maestro's courses

Learn more

  • Package

    A package is a bundle of code someone else wrote that you install to give Python new tools. pandas and Altair are packages.

  • CSV

    A CSV (comma-separated values) is a plain-text file that holds a table: one row per line, with commas between the columns.

  • Altair

    Altair (Vega-Altair) is a Python package for making charts by describing them: you say which column goes on each axis, color or size, and it writes the Vega-Lite that draws the chart.

The whole glossary