Project 4: Photo Likes Table
Data Analyst
Builds on these lessons
Current Task
Objective
The most common way to build a DataFrame is from a dict where each key becomes a column.
Task: create a photos DataFrame with filename and likes columns, and print it.
index.py
import pandas as pd
photos = pd.DataFrame({
'filename': ['sunset.jpg', 'beach.jpg'],
'likes': [120, 89]
})
print(photos)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview