diff --git a/app.py b/app.py
index 16e7f6b..52c7be5 100644
--- a/app.py
+++ b/app.py
@@ -72,8 +72,6 @@ def get_json():
df_num.drop(['course'], axis = 1, inplace=True)
-#number_of_students = st.checkbox("Show Graph w.r.t the Number of Students")
-#if number_of_students:
st.markdown("
Plot w.r.t the Number of Students
", unsafe_allow_html=True)
st.write("")
st.write("")
@@ -100,9 +98,6 @@ def get_json():
number_of_students = st.checkbox("Show data w.r.t number of students")
-# if number_of_students:
-# st.write("")
-# st.write(xyz)
col1, col2, col3 = st.columns(3)
@@ -117,17 +112,11 @@ def get_json():
with col3:
st.write("")
-#xyz.reset_index(inplace=True)
-#xyz.rename(columns = {'index':'grades'}, inplace = True)
-#xyz = xyz.melt('grades', var_name='academic_session', value_name='# of students')
-#sns.factorplot(data=xyz, x="grades", y="# of students", hue="academic_session")
-#st.pyplot()
st.write("")
st.write("")
-#pct_of_students = st.checkbox("Show Graph w.r.t the Percentage of Students")
-#if pct_of_students:
+
st.markdown("Plot w.r.t the Percentage of Students
", unsafe_allow_html=True)
st.write("")
st.write("")
@@ -170,12 +159,7 @@ def get_json():
with col3:
st.write("")
-#abc.reset_index(inplace=True)
-#abc.rename(columns = {'index':'grades'}, inplace = True)
-#abc = abc.melt('grades', var_name='academic_session', value_name='% of students')
-#sns.factorplot(data=abc, x="grades", y="% of students", hue="academic_session")
-#st.pyplot()
st.write("")
st.write("")
@@ -207,4 +191,3 @@ def get_json():
"""
st.markdown(footer,unsafe_allow_html=True)
-#st.markdown("Contribute to this project on Github
", unsafe_allow_html=True)
diff --git a/scripts/fetch_syllabus.py b/scripts/fetch_syllabus.py
index 10540b8..b5a038e 100644
--- a/scripts/fetch_syllabus.py
+++ b/scripts/fetch_syllabus.py
@@ -12,7 +12,7 @@
'Cookie': "HAHAHAHAHA You thought I'd give you my session ID"
}
-SYLLABUS_PATH = "./SYLLABUS"
+SYLLABUS_PATH = "./syllabus"
os.makedirs(SYLLABUS_PATH, exist_ok=True)
@@ -58,6 +58,6 @@ def get_syllabus_retry(subject_code):
if __name__ == "__main__":
- subject_codes = get_subject_codes(r"final_data\final_grades.csv")
+ subject_codes = get_subject_codes(r"./data/final_grades.csv")
Parallel(n_jobs=8)(delayed(get_syllabus_retry)(code)
for code in tqdm(subject_codes))