diff --git a/streamlit/__pycache__/functions.cpython-312.pyc b/streamlit/__pycache__/functions.cpython-312.pyc index 7153492..5f0fb3e 100644 Binary files a/streamlit/__pycache__/functions.cpython-312.pyc and b/streamlit/__pycache__/functions.cpython-312.pyc differ diff --git a/streamlit/__pycache__/main_analysis.cpython-312.pyc b/streamlit/__pycache__/main_analysis.cpython-312.pyc index 5ba7207..71cb8ef 100644 Binary files a/streamlit/__pycache__/main_analysis.cpython-312.pyc and b/streamlit/__pycache__/main_analysis.cpython-312.pyc differ diff --git a/streamlit/home.py b/streamlit/home.py index 0aa06bb..a4198db 100644 --- a/streamlit/home.py +++ b/streamlit/home.py @@ -9,8 +9,8 @@ # DATA LOADING ####################################### -st.set_page_config(layout='wide') - +st.set_page_config(layout='wide') + @st.cache_data # Caching data loading functions def load_data(url): return pd.read_csv(url) @@ -257,18 +257,18 @@ def plot_value_counts(column_name): elif year == '2021': main.main_analysis(df2021) - main.common_analysis_2021_2022(df2021, year) + main.common_analysis_2021_2022(df2021,year) visual, analysis = st.columns((3, 1)) with visual: fig = func.plot_valuecounts_plotly(df2021,'NEWStuck') st.plotly_chart(fig) - + with analysis: newstuck_text = """
Analysis: NewsStuck Analysis
- We're all stuck while coding, sometime or other. StackOverflow asked its users what resource they use to get help while they feel stuck. + We're all stuck while coding, sometime or other. StackOverflow asked its users what resource they use to get help while they feel stuck. Most of the people replied in quite a wordy way, we tried to implement simple NLP techniques to dissect the top answers. Most answers seem to align with the 'internet help' view. Where they seek help from Google, StackOverflow Websites. Others rely on their colleagues and friends to help them over.
@@ -283,16 +283,16 @@ def plot_value_counts(column_name):
Analysis: Operating System
- Windows has been the dominated Operating System for most of the people around the world. With Linux and iOS having same proportion of userbase. + Windows has been the dominated Operating System for most of the people around the world. With Linux and iOS having same proportion of userbase.
""" st.markdown(opsys_text, unsafe_allow_html=True) - + else: main.main_analysis(df2022) - main.common_analysis_2021_2022(df2022, year) + main.common_analysis_2021_2022(df2022,year) fig = func.compare_language_columns_and_plot(df2022, 'OpSysPersonal use', 'OpSysProfessional use') - st.plotly_chart(fig) \ No newline at end of file + st.plotly_chart(fig) diff --git a/streamlit/main_analysis.py b/streamlit/main_analysis.py index dca25e2..665d6ac 100644 --- a/streamlit/main_analysis.py +++ b/streamlit/main_analysis.py @@ -322,7 +322,7 @@ def main_analysis_2(df, year): """ st.markdown(feature_jobsatis_text, unsafe_allow_html=True) -def common_analysis_2021_2022(df): +def common_analysis_2021_2022(df,year_variable): visual3, analysis3 = st.columns((3,1)) with visual3: