Office logins by weekday

MediumMicrosoftto_datetimedt.day_namedt.hour· 20 XP

Facilities wants to know which days people come in early, to plan when to open the café.

From office_logins.csv, count the logins before 9:00 (hour below 9) on each weekday, and store them as a Series indexed by the day name (Monday, Tuesday and so on).

Expected answer

Store your answer in result.

Hints, the later steps and the answer come with Pro.

import pandas as pd

logins = pd.read_csv("office_logins.csv")
result = ...