ProfessorLeVesseur
commited on
Update data_processor.py
Browse files- 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
|