Books Borrowed This Week
Data questions · Beginner · about 3 min
loans.csv has one row for each book the school library lent this week: the day, the title and the genre. Set answer to the number of loans in the file.
Example
The first lines of loans.csv:
day,title,genre Monday,The Silent Forest,Fiction Monday,Rivers of the World,Geography
loans.csv · 17 rows
| day | title | genre |
|---|---|---|
| Monday | The Silent Forest | Fiction |
| Monday | Rivers of the World | Geography |
| Monday | Space for Beginners | Science |
| Tuesday | The Lost Key | Fiction |
| Tuesday | Ancient Egypt | History |
| Wednesday | The Silent Forest | Fiction |
| Wednesday | Simple Machines | Science |
| Wednesday | Poems for Rainy Days | Poetry |
First 8 of 17 rows.
import pandas as pd
df = pd.read_csv("loans.csv")
answer = None
The solution opens after your first Check.