Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,7 @@ def main():
|
|
235 |
col1, col2 = st.columns([3, 1]) # Set the column width ratio
|
236 |
|
237 |
with col1:
|
238 |
-
student_metrics_fig = plot_student_metrics(student_metrics_df)
|
239 |
|
240 |
with col2:
|
241 |
# Display the "Attendance Average (%)" text and value
|
@@ -444,7 +444,7 @@ def compute_average_metrics(student_metrics_df):
|
|
444 |
|
445 |
return attendance_avg_stats, engagement_avg_stats
|
446 |
|
447 |
-
def plot_student_metrics(student_metrics_df):
|
448 |
# Create the figure and axis
|
449 |
fig, ax = plt.subplots(figsize=(10, 6)) # Increased figure size for better readability
|
450 |
|
|
|
235 |
col1, col2 = st.columns([3, 1]) # Set the column width ratio
|
236 |
|
237 |
with col1:
|
238 |
+
student_metrics_fig = plot_student_metrics(student_metrics_df, attendance_avg_stats, engagement_avg_stats)
|
239 |
|
240 |
with col2:
|
241 |
# Display the "Attendance Average (%)" text and value
|
|
|
444 |
|
445 |
return attendance_avg_stats, engagement_avg_stats
|
446 |
|
447 |
+
def plot_student_metrics(student_metrics_df, attendance_avg_stats, engagement_avg_stats):
|
448 |
# Create the figure and axis
|
449 |
fig, ax = plt.subplots(figsize=(10, 6)) # Increased figure size for better readability
|
450 |
|