From baab7fe2e8ce68a156f256782763238e795294ef Mon Sep 17 00:00:00 2001 From: PalavalasaSaiJoshitha Date: Thu, 24 Oct 2024 21:29:36 +0530 Subject: [PATCH] Update main_analysis.py I have successfully updated the CSS to change the paragraph font color from red to blue, enhancing the overall user interface for better readability. --- streamlit/main_analysis.py | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/streamlit/main_analysis.py b/streamlit/main_analysis.py index dca25e2..0e7d446 100644 --- a/streamlit/main_analysis.py +++ b/streamlit/main_analysis.py @@ -59,7 +59,7 @@ def main_analysis(df): annual_salary_top_text = """
Analysis: Distribution of Annual Salary for Top Countries
-
+
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.
@@ -76,7 +76,7 @@ def main_analysis(df): geographical_text = """
Analysis: Geographical plot to show number of respondents in each country
-
+
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.
@@ -92,7 +92,7 @@ def main_analysis(df): income_gender_text = """
Analysis: Income vs Gender
-
+
There is a little bit of difference between Gender and income they received respectively. Men tend to receive more salary than women from the above analysis.
@@ -109,7 +109,7 @@ def main_analysis(df): Ethnicity_text = """
Analysis: Ethnicity vs Participation
-
+
From the Survey Analysis, more participation has been happened from White or of European Ethnicity. 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..
@@ -126,7 +126,7 @@ def main_analysis(df): age_text = """
Analysis: Distribution of respondents based on age
-
+
Late twenties respondents are clearly dominating the survey responses. It could be the age-range of a typical user on StackOverflow website. The graph is plotted in a descending order for better visuality, and understanding.
@@ -141,7 +141,7 @@ def main_analysis(df): gender_top_country_text = """
Analysis: Men vs Women Participation
-
+
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.
@@ -163,7 +163,7 @@ def main_analysis(df): education_salary_text = """
Analysis: Education Levels with Salary Levels
-
+
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
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.
@@ -182,7 +182,7 @@ def main_analysis(df): data_scientist_participation_text = """
Analysis: Data Scientist Market
-
+
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.
""" @@ -207,7 +207,7 @@ def main_analysis_2(df, year): jobsatis_text = """
Analysis: Data Scientist Market
-
+
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) Figures in Dollars $
@@ -223,7 +223,7 @@ def main_analysis_2(df, year): LanguageDesireNextYear_text = """
Analysis: Programming language desired to work
-
+
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.
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.
@@ -238,7 +238,7 @@ def main_analysis_2(df, year): devtype_text = """
Analysis: Distribution of surveyors based on their developer role
-
+
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.
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.
@@ -269,7 +269,7 @@ def main_analysis_2(df, year): data_scientist_participation_text = """
Analysis: Data Scientist Market
-
+
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.
""" @@ -296,7 +296,7 @@ def main_analysis_2(df, year): highest_paying_ds_text = """
Analysis: Data Scientist Market
-
+
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) Figures in Dollars $
@@ -312,7 +312,7 @@ def main_analysis_2(df, year): feature_jobsatis_text = """
Analysis: Features for Job Satisfaction
-
+
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. Among the countries; most dissatisfied countries are Angolia, Rwanda, Krygyzstan, Sudan. UndergradMajor and other Science, are mostly satisfied. @@ -333,7 +333,7 @@ def common_analysis_2021_2022(df): employment_text = """
Analysis: DevType VS Salary
-
+
Full-time developers are unsurprisingly the highest earners based on our bar graph. Analysing the graph, fulltime students grap the second spot.
@@ -347,7 +347,7 @@ def common_analysis_2021_2022(df): highest_paying = """
Analysis: Highest Paying Data Scientist Countries
-
+
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) Figures in Dollars $
@@ -361,7 +361,7 @@ def common_analysis_2021_2022(df): employment_text = """
Analysis: Employment VS Salary
-
+
Full-time developers are unsurprisingly the highest earners based on our bar graph. # Analysing the graph, fulltime students grap the second spot.
@@ -375,7 +375,7 @@ def common_analysis_2021_2022(df): devtype_text = """
Analysis: DevType VS Respondents
-
+
Full-stack developers have always dominated the respondents, and this year was no different either. 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.
@@ -390,7 +390,7 @@ def common_analysis_2021_2022(df): language_text = """
Analysis: Languages Trend
-
+
A lot of languages have been presented before us. Many of which seem to be still popular amongst developers. 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.
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): database_base = """
Analysis: Database Trend
-
+
A lot of databases have been presented before us. Many of which seem to be still popular amongst developers. 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.
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): with analysis3: webframe_text = """
-
Analysis: Webframes Trends
-
+
Analysis: Webframes Trends
+
A lot of frameworks have been presented before us. Many of which seem to be still popular amongst developers. 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.
However, if we look at the big picture, some of the frameworks are more popular than others. ReactJS, Express are clearly leading the market.