Averaging Across the Timetable

Data with PythonMedium+20 XP+20

Averaging Across the Timetable

A leisure centre logs every class it runs, with the day and how many people came. Some classes ran more than once on the same day. The log is a DataFrame called log:

classdayattendees
YogaMon12
SpinMon18
YogaTue9
PilatesMon7
SpinWed15
YogaMon16
SpinMon14
PilatesWed11
YogaWed10
SpinMon19
YogaTue13

The manager builds a grid of typical turnouts and then asks how Spin is doing across the week:

What does the last line print? Give your answer rounded to 2 decimal places.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.