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
| class | percent |
|---|---|
| 6A | 92.4 |
| 6B | 88.1 |
| 6C | 95.0 |
| 7A | 90.7 |
| 7B | 85.3 |
| 7C | 93.6 |
| 8A | 89.9 |
| 8B | 91.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.