Skip to content

Commit

Permalink
autumn update
Browse files Browse the repository at this point in the history
  • Loading branch information
spookbite committed Dec 26, 2022
1 parent 8780cac commit 5d0828f
Show file tree
Hide file tree
Showing 3 changed files with 3,471 additions and 7,511 deletions.
32 changes: 23 additions & 9 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import plotly.express as px
import os
import streamlit.components.v1 as components
from PIL import Image

#st.set_page_config(layout="wide")
st.set_page_config(page_title='Kronos2.0',page_icon = 'favicon.ico',layout = 'wide')
Expand All @@ -30,15 +31,25 @@ def get_json():

st.write("")

col1, col2, col3 = st.columns(3)

with col1:
st.write("")

with col2:
image = Image.open('bean.jpg')
st.image(image, caption='Hang in there XD')

with col3:
st.write("")


#st.dataframe(df)
st.write("")

#st.sidebar.title("Enter Course Code here:")

indexNames = df[ df['course'] == "19IST02 : Aeroelasticity and Unsteady Aerodynamics in Turbomachinery"].index
df.drop(indexNames , inplace=True)
course = df['course'].unique()
course_choice = st.selectbox('Enter Course Code here', course)
course_choice = st.selectbox('Enter Course Code here (Note: The course codes have been updated for a few courses, so try all possible course codes)', course)
df_new = df[df['course'] == course_choice].copy()
df_new.reset_index(inplace=True)
df_new.drop(['index'], axis = 1, inplace=True)
Expand Down Expand Up @@ -90,7 +101,11 @@ def get_json():


number_of_students = st.checkbox("Show data w.r.t number of students")
col1, col2, col3 = st.columns([2,6,2])
# if number_of_students:
# st.write("")
# st.write(xyz)

col1, col2, col3 = st.columns(3)

with col1:
st.write("")
Expand Down Expand Up @@ -142,7 +157,8 @@ def get_json():
st.plotly_chart(fig2)

perct_of_students = st.checkbox("Show data w.r.t percentage of students")
col1, col2, col3 = st.columns([2,6,2])

col1, col2, col3 = st.columns(3)

with col1:
st.write("")
Expand Down Expand Up @@ -172,13 +188,11 @@ def get_json():
background-color: transparent;
text-decoration: underline;
}
a:hover, a:active {
color: red;
background-color: transparent;
text-decoration: underline;
}
.footer {
position: fixed;
left: 0;
Expand All @@ -194,4 +208,4 @@ 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/spookbite/kronos2.0'>Github</a></i></b></h4>", unsafe_allow_html=True)
#st.markdown("<h4 style='text-align: center;'><b><i>Contribute to this project on <a href = 'http://github.com/spookbite/kronos2.0'>Github</a></i></b></h4>", unsafe_allow_html=True)
Binary file added bean.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5d0828f

Please sign in to comment.