Project 6: Testimonials CSV Loader
Data Analyst
Builds on these lessons
Current Task
Objective
pd.read_csv() is the most common way to load tabular data, parsing the first row as column headers by default.
Task: parse a testimonials CSV string with author and quote columns and print it.
index.py
import pandas as pd
from io import StringIO
csv_text = "author,quote\nJane,Great product!\nTom,Works well"
testimonials = pd.read_csv(StringIO(csv_text))
print(testimonials)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview