From 40a327d71b325d9e1c72ae7bb66f8b1c8771e687 Mon Sep 17 00:00:00 2001 From: Revanth <109272714+revanth1718@users.noreply.github.com> Date: Mon, 3 Jun 2024 12:46:32 +0530 Subject: [PATCH] BUG FIXED --- .../__pycache__/functions.cpython-311.pyc | Bin 0 -> 20662 bytes .../__pycache__/main_analysis.cpython-311.pyc | Bin 0 -> 19075 bytes streamlit/functions.py | 6 ++--- streamlit/home.py | 21 +++++++++++------- 4 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 streamlit/__pycache__/functions.cpython-311.pyc create mode 100644 streamlit/__pycache__/main_analysis.cpython-311.pyc diff --git a/streamlit/__pycache__/functions.cpython-311.pyc b/streamlit/__pycache__/functions.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..747485a3837a5807b311c2c08c6874219d7978ea GIT binary patch literal 20662 zcmd^n4Qv}%w%(8&{)wVUNfbp&mPN_7Y(};$*^({WihpEVwvp0+v?-FA zA#ID1TE0czTV-K%)rEtoTQACP_hscquh47vp>B~^xC^v3irr#{7=Y}c2GVZRKJ`~= zvae|hv_0nze`Y8u@%{l1=;iQm=Kjyjz2|)QoOAhOyS<8n(8%7JT0KZnzrc$^Fyv1@ z|Cc(7`ha36Mi-{Wb>vq+ZXmz(ta03=Q_{?{mT_zTylT9Pq}#@;;a4BF&(@6Bk_jWdQ1q1BJztAz2ovUIvEy}m5nSeEW8OE;CJH6Wte zMz)TvW31jnhbgA&E;%p7jC;!Ju$9%}Wvbt$#+#T{#`&&pyqWPab@025sfXAWrj2pI z)pn)w2koqZD+hdcQ8#rcQVaDcQM<5wlFO~JDBZ2cQd*xl)rr)`!(j* z$#f*j%_ggusRP{yy1Rn>J>|TopPX;!6Wl#^Zh~X^L^#e*@PXM_n4LJ#{f+5IzP`Ms zEs|HZUI~N)+}yP*XF@0K1}bUGH;NSn>Ebh`C^MYn!2H}p24%cBKq%@?@%%%`@KLeQ z0zFTq^~Foo$-GYc0?tskdT&C`1>=Hgo=z7gfT{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|#__3_f_;2$|3wbe~y?SVhG^J87X zKOXU+ZHpE{cG*LvUu+htsn92BD7MLkI0)-rGLhTr^1d|jO#w39-&EBv8=C9W7f{tKgXjU0)X01O)r5~2!JE^b2Y=5{``#|Z6Ns9xUCeBb|eO>TRCe#2>F!|8?E<+`TDvA6E# zww=t^oigf9RT!x$-zHSMsNcVA)Qb;~J*sarLWdTrSE{+1&5L{9I&?po5AQX?dl!Nj u^3^@&qK~*}Zs*~p=G>0cAL%(Rn&++<+?5=6Wrd#)_{amS{-%BxjQKyeZ=pW` literal 0 HcmV?d00001 diff --git a/streamlit/functions.py b/streamlit/functions.py index 2925f55..ce9b767 100644 --- a/streamlit/functions.py +++ b/streamlit/functions.py @@ -263,7 +263,8 @@ def ai_graphs(): st.title('AI Survey Responses') df = full_data2018[['AIDangerous', 'AIInteresting', 'AIResponsible', 'AIFuture']] - df = df.applymap(lambda x: x.strip() if isinstance(x, str) else x) + # Correct replacement of applymap + df = df.apply(lambda col: col.map(lambda x: x.strip() if isinstance(x, str) else x) if col.dtype == 'object' else col) short_mapping = { 'Algorithms making important decisions': 'Algorithms', @@ -286,8 +287,7 @@ def ai_graphs(): plot_value_counts_plotly('AIDangerous', df, col1) plot_value_counts_plotly('AIInteresting', df, col1) plot_value_counts_plotly('AIResponsible', df, col2) - plot_value_counts_plotly('AIFuture', df, col2) - + plot_value_counts_plotly('AIFuture', df, col2) def result_plot(data): new_index = data.Rates.sort_values(ascending=False).index diff --git a/streamlit/home.py b/streamlit/home.py index 6490fae..c8cd49c 100644 --- a/streamlit/home.py +++ b/streamlit/home.py @@ -10,6 +10,7 @@ import random import functions as ff import main_analysis as main +import os ####################################### # DATA LOADING @@ -17,20 +18,24 @@ st.set_page_config(layout='wide') +# Determine the base path +base_path = os.path.dirname(__file__) + # Loading data files -df = pd.read_csv('df2020.csv') -df2018 = pd.read_csv('df2018.csv') -full_data2018 = pd.read_csv('survey_results_sample_2018.csv') -full_data2019 = pd.read_csv('survey_results_sample_2019.csv') -full_df2020 = pd.read_csv('survey_results_sample_2020.csv') -df2019 = pd.read_csv('df2019.csv') +df = pd.read_csv(os.path.join(base_path, 'df2020.csv')) +df2018 = pd.read_csv(os.path.join(base_path, 'df2018.csv')) +full_data2018 = pd.read_csv(os.path.join(base_path, 'survey_results_sample_2018.csv')) +full_data2019 = pd.read_csv(os.path.join(base_path, 'survey_results_sample_2019.csv')) +full_df2020 = pd.read_csv(os.path.join(base_path, 'survey_results_sample_2020.csv')) +df2019 = pd.read_csv(os.path.join(base_path, 'df2019.csv')) # Filter the 2020 dataframe df2020 = df[df['SalaryUSD'] < 200000] # Load CSS file def local_css(file_name): - with open(file_name) as f: + css_path = os.path.join(base_path, file_name) + with open(css_path) as f: st.markdown(f'', unsafe_allow_html=True) local_css("style.css") @@ -61,7 +66,7 @@ def local_css(file_name): full_data2018.rename(columns={'ConvertedSalary': 'SalaryUSD'}, inplace=True) # Strip leading and trailing whitespace from all columns in df_ai -df_ai = df_ai.applymap(lambda x: x.strip() if isinstance(x, str) else x) +df_ai = df_ai.apply(lambda x: x.str.strip() if x.dtype == "object" else x) # Mapping for shorter versions short_mapping = {