Project 1: Team Roster DataFrame
Data Analyst
Builds on these lessons
Current Task
Objective
Pandas is Python's core library for working with tabular data — its two building blocks are the Series (1D) and the DataFrame (2D, like a spreadsheet).
Task: import pandas, print its version, then build a small DataFrame from a dict of names and roles.
index.py
import pandas as pd
print(pd.__version__)
data = {'name': ['Alex', 'Sam'], 'role': ['Dev', 'Designer']}
df = pd.DataFrame(data)
print(df)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview
← Previous
Next →