Project 27: Task Status Bar Chart
Data Analyst
Builds on these lessons
Current Task
Objective
Pandas' .plot() is a thin wrapper over matplotlib — calling it on a Series or DataFrame draws a chart directly from your data.
Task: count tasks by status, plot the counts as a bar chart, and print the counts.
index.py
import pandas as pd
tasks = pd.DataFrame({'status': ['done', 'pending', 'done', 'done']})
counts = tasks['status'].value_counts()
ax = counts.plot(kind='bar', title='Task Status')
print(counts)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview