Editor

Average Attendance

Data questions · Beginner · about 4 min

attendance.csv lists each class with its attendance for the term, as a percent. Set answer to the average of the percent column, rounded to 1 decimal place.

Example

The first lines of attendance.csv:

class,percent
6A,92.4
6B,88.1
attendance.csv · 12 rows
classpercent
6A92.4
6B88.1
6C95.0
7A90.7
7B85.3
7C93.6
8A89.9
8B91.2

First 8 of 12 rows.

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