Skip to content
Justice Tech School

pandas Get Started

Install pandas with pip install pandas and import it as pd. A DataFrame prints like a table, and every row has an index label.

Example
import pandas as pd
import numpy as np
df = pd.DataFrame({'name': ['Ada', 'Bob'], 'age': [30, 25]})
print(df)
print(type(df).__name__)

Result

  name  age
0  Ada   30
1  Bob   25
DataFrame

Exercise

Install command.

pip  pandas

Quiz Test

What alias is common for pandas?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.