From aa26b96c34a345009c7926d7977003ffefe91a2f Mon Sep 17 00:00:00 2001 From: Yodha Sudarsi <101962069+Yodha-Sudarsi@users.noreply.github.com> Date: Wed, 15 May 2024 12:51:50 +0530 Subject: [PATCH] Stack_overflow_2019 Investigated participation rates based on ethnicity and differences in income between men and women on survey_results_sample_2019.csv --- Stack_Overflow_2019 .ipynb | 1137 +++++++++++++++++++++++++++++++++++ 1 file changed, 1137 insertions(+) create mode 100644 Stack_Overflow_2019 .ipynb diff --git a/ Stack_Overflow_2019 .ipynb b/ Stack_Overflow_2019 .ipynb new file mode 100644 index 0000000..6ab291b --- /dev/null +++ b/ Stack_Overflow_2019 .ipynb @@ -0,0 +1,1137 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "72783dcf", + "metadata": {}, + "source": [ + "# EDA ON STACK OVERFLOW 2019 DATA" + ] + }, + { + "cell_type": "markdown", + "id": "454852c7", + "metadata": {}, + "source": [ + "Importing required libraries and modules" + ] + }, + { + "cell_type": "code", + "execution_count": 97, + "id": "4638bf45", + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np\n", + "import pandas as pd\n", + "import matplotlib.pyplot as plt\n", + "import seaborn as sns" + ] + }, + { + "cell_type": "markdown", + "id": "29dbed43", + "metadata": {}, + "source": [ + "### Data Collection" + ] + }, + { + "cell_type": "markdown", + "id": "5b8e1a0b", + "metadata": {}, + "source": [ + "**Loading 2019 stack overflow data**" + ] + }, + { + "cell_type": "code", + "execution_count": 98, + "id": "b2d1b8d9", + "metadata": {}, + "outputs": [], + "source": [ + "df= pd.read_csv(\"/Users/yodhasudarsi/Stackoverflow-Analysis/Data/survey_results_sample_2019.csv\")" + ] + }, + { + "cell_type": "code", + "execution_count": 99, + "id": "c0159bd6", + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/html": [ + "
| \n", + " | Respondent | \n", + "MainBranch | \n", + "Hobbyist | \n", + "OpenSourcer | \n", + "OpenSource | \n", + "Employment | \n", + "Country | \n", + "Student | \n", + "EdLevel | \n", + "UndergradMajor | \n", + "... | \n", + "WelcomeChange | \n", + "SONewContent | \n", + "Age | \n", + "Gender | \n", + "Trans | \n", + "Sexuality | \n", + "Ethnicity | \n", + "Dependents | \n", + "SurveyLength | \n", + "SurveyEase | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "1 | \n", + "I am a student who is learning to code | \n", + "Yes | \n", + "Never | \n", + "The quality of OSS and closed source software ... | \n", + "Not employed, and not looking for work | \n", + "United Kingdom | \n", + "No | \n", + "Primary/elementary school | \n", + "NaN | \n", + "... | \n", + "Just as welcome now as I felt last year | \n", + "Tech articles written by other developers;Indu... | \n", + "14.0 | \n", + "Man | \n", + "No | \n", + "Straight / Heterosexual | \n", + "NaN | \n", + "No | \n", + "Appropriate in length | \n", + "Neither easy nor difficult | \n", + "
| 1 | \n", + "2 | \n", + "I am a student who is learning to code | \n", + "No | \n", + "Less than once per year | \n", + "The quality of OSS and closed source software ... | \n", + "Not employed, but looking for work | \n", + "Bosnia and Herzegovina | \n", + "Yes, full-time | \n", + "Secondary school (e.g. American high school, G... | \n", + "NaN | \n", + "... | \n", + "Just as welcome now as I felt last year | \n", + "Tech articles written by other developers;Indu... | \n", + "19.0 | \n", + "Man | \n", + "No | \n", + "Straight / Heterosexual | \n", + "NaN | \n", + "No | \n", + "Appropriate in length | \n", + "Neither easy nor difficult | \n", + "
| 2 | \n", + "3 | \n", + "I am not primarily a developer, but I write co... | \n", + "Yes | \n", + "Never | \n", + "The quality of OSS and closed source software ... | \n", + "Employed full-time | \n", + "Thailand | \n", + "No | \n", + "Bachelor’s degree (BA, BS, B.Eng., etc.) | \n", + "Web development or web design | \n", + "... | \n", + "Just as welcome now as I felt last year | \n", + "Tech meetups or events in your area;Courses on... | \n", + "28.0 | \n", + "Man | \n", + "No | \n", + "Straight / Heterosexual | \n", + "NaN | \n", + "Yes | \n", + "Appropriate in length | \n", + "Neither easy nor difficult | \n", + "
| 3 | \n", + "4 | \n", + "I am a developer by profession | \n", + "No | \n", + "Never | \n", + "The quality of OSS and closed source software ... | \n", + "Employed full-time | \n", + "United States | \n", + "No | \n", + "Bachelor’s degree (BA, BS, B.Eng., etc.) | \n", + "Computer science, computer engineering, or sof... | \n", + "... | \n", + "Just as welcome now as I felt last year | \n", + "Tech articles written by other developers;Indu... | \n", + "22.0 | \n", + "Man | \n", + "No | \n", + "Straight / Heterosexual | \n", + "White or of European descent | \n", + "No | \n", + "Appropriate in length | \n", + "Easy | \n", + "
| 4 | \n", + "5 | \n", + "I am a developer by profession | \n", + "Yes | \n", + "Once a month or more often | \n", + "OSS is, on average, of HIGHER quality than pro... | \n", + "Employed full-time | \n", + "Ukraine | \n", + "No | \n", + "Bachelor’s degree (BA, BS, B.Eng., etc.) | \n", + "Computer science, computer engineering, or sof... | \n", + "... | \n", + "Just as welcome now as I felt last year | \n", + "Tech meetups or events in your area;Courses on... | \n", + "30.0 | \n", + "Man | \n", + "No | \n", + "Straight / Heterosexual | \n", + "White or of European descent;Multiracial | \n", + "No | \n", + "Appropriate in length | \n", + "Easy | \n", + "
5 rows × 85 columns
\n", + "