ProfessorLeVesseur commited on
Commit
8e654a1
·
verified ·
1 Parent(s): b7e5770

Update data_processor.py

Browse files
Files changed (1) hide show
  1. data_processor.py +1 -1
data_processor.py CHANGED
@@ -154,7 +154,7 @@ class DataProcessor:
154
  student_metrics_df.rename(columns={'index': 'Student'}, inplace=True)
155
  return student_metrics_df
156
 
157
- def compute_average_metrics(student_metrics_df):
158
  # Calculate the attendance and engagement average percentages across students
159
  attendance_avg_stats = student_metrics_df['Attendance (%)'].mean() # Calculate the average attendance percentage
160
  engagement_avg_stats = student_metrics_df['Engagement (%)'].mean() # Calculate the average engagement percentage
 
154
  student_metrics_df.rename(columns={'index': 'Student'}, inplace=True)
155
  return student_metrics_df
156
 
157
+ def compute_average_metrics(self, student_metrics_df):
158
  # Calculate the attendance and engagement average percentages across students
159
  attendance_avg_stats = student_metrics_df['Attendance (%)'].mean() # Calculate the average attendance percentage
160
  engagement_avg_stats = student_metrics_df['Engagement (%)'].mean() # Calculate the average engagement percentage