Project 5: Team CSV Importer
Data Analyst
Builds on these lessons
Current Task
Objective
Pandas can read data from many formats — CSV, JSON, Excel, SQL — all producing the same DataFrame structure. StringIO lets you parse text as if it were a file.
Task: parse a small CSV string of team members with pd.read_csv and print the resulting DataFrame.
index.py
import pandas as pd
from io import StringIO
csv_text = "name,role\nAlex,Dev\nSam,Designer"
df = pd.read_csv(StringIO(csv_text))
print(df)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview