Skip to content

Commit 74229ba

Browse files
authored
Merge pull request #417 from JOSHITHA6/main
Update main_analysis.py by enhancing the styling for streamlit
2 parents ca0bc62 + baab7fe commit 74229ba

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

streamlit/main_analysis.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main_analysis(df):
5959
annual_salary_top_text = """
6060
<div class='analysis-container-extra'>
6161
<div class='analysis-title'>Analysis: Distribution of Annual Salary for Top Countries</div>
62-
<div class='analysis-text' style="color: red; font-weight: bold;">
62+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
6363
Overall, the country which has the highest mean annual salary is the United States of America(240,000) Dollars. The second highest country which provides the highest mean salary is Australia(164,926) Dollars. Though India has a higher number of respondents, it has the lowest mean salary of $25,213.We can understand that the mean salary of a developed country is much higher than that of a developing country.
6464
</div>
6565
</div>
@@ -76,7 +76,7 @@ def main_analysis(df):
7676
geographical_text = """
7777
<div class='analysis-container'>
7878
<div class='analysis-title'>Analysis: Geographical plot to show number of respondents in each country</div>
79-
<div class='analysis-text' style="color: red; font-weight: bold;">
79+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
8080
The geographical plot shows the number of respondents by country, with the United States having the highest participation. Other countries with significant participation include India, Brazil, and several European nations. The intensity of color represents the number of respondents, with darker shades indicating higher numbers.
8181
</div>
8282
</div>
@@ -92,7 +92,7 @@ def main_analysis(df):
9292
income_gender_text = """
9393
<div class='analysis-container'>
9494
<div class='analysis-title'>Analysis: Income vs Gender</div>
95-
<div class='analysis-text' style="color: red; font-weight: bold;">
95+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
9696
There is a little bit of difference between Gender and income they received respectively.
9797
Men tend to receive more salary than women from the above analysis.
9898
</div>
@@ -109,7 +109,7 @@ def main_analysis(df):
109109
Ethnicity_text = """
110110
<div class='analysis-container'>
111111
<div class='analysis-title'>Analysis: Ethnicity vs Participation</div>
112-
<div class='analysis-text' style="color: red; font-weight: bold;">
112+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
113113
From the Survey Analysis, more participation has been happened from White or of European Ethnicity.
114114
The least has been recorded as only 0.16% from Indigenous. The second top survey contributors are from South Asians which is 11.93% of the respondents..
115115
</div>
@@ -126,7 +126,7 @@ def main_analysis(df):
126126
age_text = """
127127
<div class='analysis-container-extra'>
128128
<div class='analysis-title'>Analysis: Distribution of respondents based on age</div>
129-
<div class='analysis-text' style="color: red; font-weight: bold;">
129+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
130130
Late twenties respondents are clearly dominating the survey responses. It could be the age-range of a typical user on StackOverflow website.
131131
The graph is plotted in a descending order for better visuality, and understanding.
132132
</div>
@@ -141,7 +141,7 @@ def main_analysis(df):
141141
gender_top_country_text = """
142142
<div style='margin-top: 400px !important' class='analysis-container'>
143143
<div class='analysis-title'>Analysis: Men vs Women Participation</div>
144-
<div class='analysis-text' style="color: red; font-weight: bold;">
144+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
145145
Women participation is extremely low in the STEM field, compared to men. They are even less than 20% of total male population that is dominating the tech industry in almost all the countries.
146146
</div>
147147
</div>
@@ -163,7 +163,7 @@ def main_analysis(df):
163163
education_salary_text = """
164164
<div class='analysis-container-extra'>
165165
<div class='analysis-title'>Analysis: Education Levels with Salary Levels</div>
166-
<div class='analysis-text' style="color: red; font-weight: bold;">
166+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
167167
As we can see, the respondents who have done Doctorate have the highest mean salary among all other education levels. Secondly, the respondents who have done Bachelors degree have more salary than that of Masters degree holders. This may be due to years of professional coding experience and due to the higher number of respondents in that category than that of Masters degree
168168
<br>The most interesting is that the respondents who do not have any degree have a mean salary of $90k. This shows the improvement in online learning and advancement of technology that is shifting the company from relying on University degrees.
169169
</div>
@@ -182,7 +182,7 @@ def main_analysis(df):
182182
data_scientist_participation_text = """
183183
<div style='margin-top: 400px !important' class='analysis-container'>
184184
<div class='analysis-title'>Analysis: Data Scientist Market</div>
185-
<div class='analysis-text' style="color: red; font-weight: bold;">
185+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
186186
There are many data scientists who responded to the Stackoverflow survey. Most data scientists are from the US around 1,500-1700 people and it is 3 times higher than data scientists from India. Followed by Germany and the UK with 427 and 339 people respectively. The rest are Canada, France, Netherlands, Brazil, Russia, and Australia which have less than 200 data scientists.
187187
</div>
188188
</div>"""
@@ -207,7 +207,7 @@ def main_analysis_2(df, year):
207207
jobsatis_text = """
208208
<div style='margin-top: 400px !important' class='analysis-container'>
209209
<div class='analysis-title'>Analysis: Data Scientist Market</div>
210-
<div class='analysis-text' style="color: red; font-weight: bold;">
210+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
211211
In 2019, the top three countries which have a highest mean annual salary of a data scientist are Ireland (275,851), Luxembourg (272,769), and the USA (265,211). Apart from that, the mean salary of the rest of the countries is less than (200,000) per year. Japan provides the highest mean annual salary among Asian countries (118,969)
212212
Figures in Dollars $
213213
</div>
@@ -223,7 +223,7 @@ def main_analysis_2(df, year):
223223
LanguageDesireNextYear_text = """
224224
<div class='analysis-container'>
225225
<div class='analysis-title'>Analysis: Programming language desired to work</div>
226-
<div class='analysis-text' style="color: red; font-weight: bold;">
226+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
227227
In 2019, respondents said that they wanted to work in javascript is around more than 10 % and the fewer respond have a desire to work on VBA next year. People started to work in Haskell, Julia, and pearl in 2019 though the amount was less around 5% of people have the desire to work in those languages in 2021. Here, python is the 2nd one in which people have the desire to work in both 2019 and 2020.
228228
<br>However, if we look at the big picture, Python has been constantly gaining significant popularity within the developers community for three consequent years, whereas JavaScript is either constant or decling in popularity.
229229
</div>
@@ -238,7 +238,7 @@ def main_analysis_2(df, year):
238238
devtype_text = """
239239
<div style='margin-top: 400px !important' class='analysis-container'>
240240
<div class='analysis-title'>Analysis: Distribution of surveyors based on their developer role</div>
241-
<div class='analysis-text' style="color: red; font-weight: bold;">
241+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
242242
Based on respondents responses the survey concluded that they wanted to work in JavaScript is around more than 10%, and fewer respondents have a desire to work on VBA next year. People started to work in Haskell, Julia, and Pearl in 2019, though the amount was less; around 5% of people have the desire to work in those languages in 2021. Here, Python is the 2nd one in which people have the desire to work in both 2019 and 2020.
243243
<br>However, if we look at the big picture, Python has been constantly gaining significant popularity within the developer community for three consequent years, whereas JavaScript is either constant or declining in popularity.
244244
</div>
@@ -269,7 +269,7 @@ def main_analysis_2(df, year):
269269
data_scientist_participation_text = """
270270
<div style='margin-top: 400px !important' class='analysis-container'>
271271
<div class='analysis-title'>Analysis: Data Scientist Market</div>
272-
<div class='analysis-text' style="color: red; font-weight: bold;">
272+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
273273
There are many data scientists who responded to the Stackoverflow survey. Most data scientists are from the US around 1,500-1700 people and it is 3 times higher than data scientists from India. Followed by Germany and the UK with 427 and 339 people respectively. The rest are Canada, France, Netherlands, Brazil, Russia, and Australia which have less than 200 data scientists.
274274
</div>
275275
</div>"""
@@ -296,7 +296,7 @@ def main_analysis_2(df, year):
296296
highest_paying_ds_text = """
297297
<div style='margin-top: 400px !important' class='analysis-container'>
298298
<div class='analysis-title'>Analysis: Data Scientist Market</div>
299-
<div class='analysis-text' style="color: red; font-weight: bold;">
299+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
300300
The top countries which have a highest mean annual salary of a data scientist are South Korea (253,315) in 2018,Ireland (275,851) in 2019, and the USA(118,863) in 2020. Apart from that, the mean salary of the rest of the countries is less than (200,000) per year. Japan provides the highest mean annual salary among Asian countries (118,969)
301301
Figures in Dollars $
302302
</div>
@@ -312,7 +312,7 @@ def main_analysis_2(df, year):
312312
feature_jobsatis_text = """
313313
<div style='margin-top: 400px !important' class='analysis-container'>
314314
<div class='analysis-title'>Analysis: Features for Job Satisfaction</div>
315-
<div class='analysis-text' style="color: red; font-weight: bold;">
315+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
316316
The top 2 features negatively affecting Job Satisfaction are age, country. So, in the elderly ages, job satisfaction may decrease because of the personal expectation increases. In the same way, as the professional coding years are increasing, satisfaction may decrease.
317317
Among the countries; most dissatisfied countries are Angolia, Rwanda, Krygyzstan, Sudan.
318318
UndergradMajor and other Science, are mostly satisfied.
@@ -333,7 +333,7 @@ def common_analysis_2021_2022(df):
333333
employment_text = """
334334
<div class='analysis-container'>
335335
<div class='analysis-title'>Analysis: DevType VS Salary</div>
336-
<div class='analysis-text' style="color: red; font-weight: bold;">
336+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
337337
Full-time developers are unsurprisingly the highest earners based on our bar graph.
338338
Analysing the graph, fulltime students grap the second spot.
339339
</div>
@@ -347,7 +347,7 @@ def common_analysis_2021_2022(df):
347347
highest_paying = """
348348
<div class='analysis-container'>
349349
<div class='analysis-title'>Analysis: Highest Paying Data Scientist Countries</div>
350-
<div class='analysis-text' style="color: red; font-weight: bold;">
350+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
351351
The top three countries which have a highest mean annual salary of a data scientist are provided using the bar graph. Apart from that, the mean salary of the rest of the countries is less than (200,000) per year. Japan provides the highest mean annual salary among Asian countries (118,969)
352352
Figures in Dollars $
353353
</div>
@@ -361,7 +361,7 @@ def common_analysis_2021_2022(df):
361361
employment_text = """
362362
<div class='analysis-container'>
363363
<div class='analysis-title'>Analysis: Employment VS Salary</div>
364-
<div class='analysis-text' style="color: red; font-weight: bold;">
364+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
365365
Full-time developers are unsurprisingly the highest earners based on our bar graph.
366366
# Analysing the graph, fulltime students grap the second spot.
367367
</div>
@@ -375,7 +375,7 @@ def common_analysis_2021_2022(df):
375375
devtype_text = """
376376
<div class='analysis-container'>
377377
<div class='analysis-title'>Analysis: DevType VS Respondents</div>
378-
<div class='analysis-text' style="color: red; font-weight: bold;">
378+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
379379
Full-stack developers have always dominated the respondents, and this year was no different either.
380380
Backend developers are following the full-stack. From the graph we can easily see that most of the developers are from full-stack developer, with many niche industry still waiting to be tapped into.
381381
</div>
@@ -390,7 +390,7 @@ def common_analysis_2021_2022(df):
390390
language_text = """
391391
<div class='analysis-container'>
392392
<div class='analysis-title'>Analysis: Languages Trend</div>
393-
<div class='analysis-text' style="color: red; font-weight: bold;">
393+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
394394
A lot of languages have been presented before us. Many of which seem to be still popular amongst developers.
395395
StackOverflow asked what language they work with, and want to work with. Many users want to work with the same language they have worked with.
396396
<br>However, if we look at the big picture, some of the languages are more popular than others. JavaScript, HTML/CSS, Python are leading the market.
@@ -407,7 +407,7 @@ def common_analysis_2021_2022(df):
407407
database_base = """
408408
<div class='analysis-container'>
409409
<div class='analysis-title'>Analysis: Database Trend</div>
410-
<div class='analysis-text' style="color: red; font-weight: bold;">
410+
<div class='analysis-text' style="colo:#1E3A8A; font-weight: bold;">
411411
A lot of databases have been presented before us. Many of which seem to be still popular amongst developers.
412412
StackOverflow asked what databases they work with, and want to work with. Many users want to work with the same Database they have worked with.
413413
<br>However, if we look at the big picture, almost all of the databases are similarly popular, with MySQL and postgresSQL leading.
@@ -422,8 +422,8 @@ def common_analysis_2021_2022(df):
422422
with analysis3:
423423
webframe_text = """
424424
<div class='analysis-container'>
425-
<div class='analysis-title'>Analysis: Webframes Trends</div>
426-
<div class='analysis-text' style="color: red; font-weight: bold;">
425+
<div class='analysis-title' >Analysis: Webframes Trends</div>
426+
<div class='analysis-text' style="color: #1E3A8A; font-weight: bold;">
427427
A lot of frameworks have been presented before us. Many of which seem to be still popular amongst developers.
428428
StackOverflow asked what framework they work with, and want to work with. Many users want to work with the same framework they have worked with.
429429
<br>However, if we look at the big picture, some of the frameworks are more popular than others. ReactJS, Express are clearly leading the market.

0 commit comments

Comments
 (0)