Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<h2 style='text-align: center;'><b>Plot w.r.t the Number of Students</b></h2>", unsafe_allow_html=True)
st.write("")
st.write("")
Expand All @@ -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)

Expand All @@ -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("<h2 style='text-align: center;'><b>Plot w.r.t the Percentage of Students</b></h2>", unsafe_allow_html=True)
st.write("")
st.write("")
Expand Down Expand Up @@ -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("")
Expand Down Expand Up @@ -207,4 +191,3 @@ def get_json():
</div>
"""
st.markdown(footer,unsafe_allow_html=True)
#st.markdown("<h4 style='text-align: center;'><b><i>Contribute to this project on <a href = 'http://github.com/metakgp/kronos'>Github</a></i></b></h4>", unsafe_allow_html=True)
4 changes: 2 additions & 2 deletions scripts/fetch_syllabus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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))