from datascience import *
import numpy as np
Table.interactive_plots()
surveys = Table.read_table('data/hw_times.csv')
surveys
np.mean(surveys)
np.array(np.mean(surveys).row(0))
mean_time = Table().with_columns(
'Homework', np.arange(1, 9),
'Mean Time Spent', np.array(np.mean(surveys).row(0))
)
mean_time
mean_time.plot('Homework')
all_times = mean_time.with_columns(
'Minimum Time Spent', np.array(np.min(surveys).row(0)),
'Maximum Time Spent', np.array(np.max(surveys).row(0))
)
all_times
all_times.plot('Homework',
yaxis_title = 'Hours',
title = 'Reported Time Spent Per Homework')