Project 16: Login Hour Counter
Data Analyst
Builds on these lessons
Current Task
Objective
.value_counts() counts how many times each unique value appears in a Series — a fast way to spot patterns before any deeper analysis.
Task: create a Series of login hours and print the counts for each hour.
index.py
import pandas as pd
logins = pd.DataFrame({'hour': [9, 14, 9, 22, 14, 9]})
print(logins['hour'].value_counts())
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview