Skip to content

Commit 2b3fb35

Browse files
committed
changed from local file to github csv fetch #382
1 parent 861773b commit 2b3fb35

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

streamlit/functions.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88
import random
99
from scipy.stats import norm
1010

11-
# data = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/df2020.csv')
12-
# df2018 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/df2018.csv')
13-
# full_data2018 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/survey_results_sample_2018.csv')
14-
# full_data2019=pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/survey_results_sample_2019.csv')
15-
# full_df2020 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/survey_results_sample_2020.csv')
16-
# df2019 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/df2019.csv')
17-
# df2020 = data[(data['SalaryUSD'] < 200000)]
11+
data = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/df2020.csv')
12+
df2018 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/df2018.csv')
13+
full_data2018 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/survey_results_sample_2018.csv')
14+
full_data2019=pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/survey_results_sample_2019.csv')
15+
full_df2020 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/survey_results_sample_2020.csv')
16+
df2019 = pd.read_csv('https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/df2019.csv')
17+
df2020 = data[(data['SalaryUSD'] < 200000)]
1818

19-
# # features for job satisfaction
20-
# results = pd.read_csv("https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/results.csv")
19+
# features for job satisfaction
20+
results = pd.read_csv("https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/results.csv")
2121

2222

2323
# Load the data from local CSV files
24-
data = pd.read_csv('df2020.csv')
25-
df2018 = pd.read_csv('df2018.csv')
26-
full_data2018 = pd.read_csv('survey_results_sample_2018.csv')
27-
full_data2019 = pd.read_csv('survey_results_sample_2019.csv')
28-
full_df2020 = pd.read_csv('survey_results_sample_2020.csv')
29-
df2019 = pd.read_csv('df2019.csv')
30-
31-
# Filter the 2020 data
32-
df2020 = data[(data['SalaryUSD'] < 200000)]
24+
# data = pd.read_csv('df2020.csv')
25+
# df2018 = pd.read_csv('df2018.csv')
26+
# full_data2018 = pd.read_csv('survey_results_sample_2018.csv')
27+
# full_data2019 = pd.read_csv('survey_results_sample_2019.csv')
28+
# full_df2020 = pd.read_csv('survey_results_sample_2020.csv')
29+
# df2019 = pd.read_csv('df2019.csv')
30+
31+
# # Filter the 2020 data
32+
# df2020 = data[(data['SalaryUSD'] < 200000)]
3333

34-
# Load results for job satisfaction from the local file
35-
results = pd.read_csv("results.csv")
34+
# # Load results for job satisfaction from the local file
35+
# results = pd.read_csv("results.csv")
3636

3737

3838
#######################################

0 commit comments

Comments
 (0)