Editor

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
daytitlegenre
MondayThe Silent ForestFiction
MondayRivers of the WorldGeography
MondaySpace for BeginnersScience
TuesdayThe Lost KeyFiction
TuesdayAncient EgyptHistory
WednesdayThe Silent ForestFiction
WednesdaySimple MachinesScience
WednesdayPoems for Rainy DaysPoetry

First 8 of 17 rows.

import pandas as pd
df = pd.read_csv("loans.csv")
answer = None
The solution opens after your first Check.