{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"# Kaggle Survey (2021) Exploratory data analysis with plotly\n\nIn this notebook we are gonna do exploratory data analysis on the Kaggle Survey (2021) dataset with the help of plotly ","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2021-10-28T05:50:55.189589Z","iopub.execute_input":"2021-10-28T05:50:55.190203Z","iopub.status.idle":"2021-10-28T05:50:55.228429Z","shell.execute_reply.started":"2021-10-28T05:50:55.190071Z","shell.execute_reply":"2021-10-28T05:50:55.227732Z"}}},{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:28.492192Z","iopub.execute_input":"2021-10-30T17:49:28.492721Z","iopub.status.idle":"2021-10-30T17:49:28.526364Z","shell.execute_reply.started":"2021-10-30T17:49:28.492598Z","shell.execute_reply":"2021-10-30T17:49:28.525549Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# importing the libraries\nimport pandas as pd\nimport numpy as np\n\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nimport plotly.express as px\nimport plotly.graph_objects as go","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:28.52778Z","iopub.execute_input":"2021-10-30T17:49:28.528166Z","iopub.status.idle":"2021-10-30T17:49:30.497841Z","shell.execute_reply.started":"2021-10-30T17:49:28.528129Z","shell.execute_reply":"2021-10-30T17:49:30.496968Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"# importing the dataset\ndata=pd.read_csv('../input/kaggle-survey-2021/kaggle_survey_2021_responses.csv')\ndata.sample(5)","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:30.499872Z","iopub.execute_input":"2021-10-30T17:49:30.500271Z","iopub.status.idle":"2021-10-30T17:49:31.901355Z","shell.execute_reply.started":"2021-10-30T17:49:30.500217Z","shell.execute_reply":"2021-10-30T17:49:31.900538Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"### What is your age (years)?\n![](https://images.theconversation.com/files/319594/original/file-20200310-61120-1wxbcqh.jpg?ixlib=rb-1.1.0&rect=2206%2C323%2C5417%2C2460&q=45&auto=format&w=496&fit=clip)","metadata":{}},{"cell_type":"code","source":"#histogram of age \nage=data['Q1'].iloc[1:].sort_values(ascending=True)\nfig=px.histogram(data,x=age,color=age,template='plotly_dark')\nfig.update_layout(\n    title=\"Age group of Kaggle users\",\n    xaxis_title=\"Age group\")\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:31.903734Z","iopub.execute_input":"2021-10-30T17:49:31.904259Z","iopub.status.idle":"2021-10-30T17:49:33.260039Z","shell.execute_reply.started":"2021-10-30T17:49:31.904212Z","shell.execute_reply":"2021-10-30T17:49:33.259161Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"we can notice that most of the kagglers are youngsters and as the age starts increasing , the number of users starts decreasing","metadata":{}},{"cell_type":"markdown","source":"### What is your gender?\n![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQwAAAC8CAMAAAC672BgAAAA81BMVEX+/vT+/vL//vH//u/+/O3xY52werYwjsz9//L///f///n9//T//////fT///2weriue7WmyeMgh8nl1uLIqsurcLD//Om51eQwjs5ipNHsfqmTwNryYJzwrsbrV5b13+fhztzc6+3vtctMmM3EosQUgcPo+Pccg8DQtNDz6PBMmsiobrA8i7/66e3vVJUvicPpmLire6777/C1k7nww9QAfcd4rc+cbaShZKqHtM+4jLvXwNlvsNnGnsy31Oeug7emZbXiYpbsibHlbp7M4+z10dzrob7vlrvGq8Xx/vkTi9TYvNn21uPm0uf/+P7wyNyuibAzIC45AAAQVUlEQVR4nO2dD1/iPBLHU1yhk7RpBbuiYlXWClitUnncW3xWjz/q4ine+381NylIA7TuPmepqP35cUHplvTLZDIzSSr5IpSTpHwSqShxvStCAYUvJIMRB+OtG5i2nq97TINMGQZBvXUD05K41NA6QhhoJ5/JLGY/79xzR5mCoYbHf2zNwcjl4mG8dWNTUByMlSkYb93KNAQAZBpG0E8+JwyhGcuYhqEEMN66iekqgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpgyEpfRiKwogCozm9F8QIUVX8N83PI30YQJTcYB81+PIyDnXY8P0GXUAT4vQG3URh/Pgvx3EuKLzwueugf3ct91+XLwJLuGXpdxNQyI+jQrm4CTnlhSvV+Xk7bxj1DwkDxBIZfFRZTucbxXJhk8L0+RUdf2YQfCuwovLLaBiKTgKfwrCbqXqCTUwNxgoDhXON5miOkQ2n+DdahjJjGXrgW4FzYEylULfMn/l5GDoLYFHKOWUKg+QamRIMbD4cbh+dnp5ebPDcVc1Z2/9rk86cHuEQaKy3m83r9RLnddct7f17fd4y8PqZX+12Op3uE6c6S6qRacGAL3Stdl9zirWic7RWc7Y5WevPjiYqUfm661pWHv85qFvWI+W//Kgm09aq59mrtuf1dlly4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Xzx/UU2g2mB3zW8oRpvH6RyuTM6VgG2d+sbfZzjAx+nBbWYpavqpSeu65bB4BLy3X/G7PeQoUHuyJWi8OwV6lUOu/s9vwE6AqIW28BWRHbeGPuH0NVRvcuG1QFBo3LPR5T5sX//tDd2sGXmX+2dffebjMzeqNwFi3utIpYxUZGizFeuiOo+FuDo/UH+JjgX3RNDcZ7UAZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUgZDUiyMXABDUYJ7+X58KaEEjJVoGG/dypQUB+NLBiPsJtMwlE9C5GUYAY/PJXEbcwWveyXoJZ8chlBuBgbi+OQwRhQ+N4zcWM8wxo8jHM+vvnUjF63ny5S6SADj68qXXPAsJ+mtG7tgyZeaC1nMwFiZuNLPopXQML5+jYGx8qEVhWIE4+v4eS4MzD84i5DGF1kBjAmOUG/d2MVr7pIFhwDG16hXP5e+hjAEj7duzptqxOB/ynEXdIq03pgAAAAASUVORK5CYII=)","metadata":{}},{"cell_type":"code","source":"#pie chart of gender distribution\ngender=data['Q2'].iloc[1:]\nfig=px.pie(gender,names=gender,template='plotly_dark')\nfig.update_layout(\n    title=\"Gender distribution of Kaggle users\",\n    xaxis_title=\"Gender\")\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:33.261269Z","iopub.execute_input":"2021-10-30T17:49:33.26151Z","iopub.status.idle":"2021-10-30T17:49:33.399807Z","shell.execute_reply.started":"2021-10-30T17:49:33.261481Z","shell.execute_reply":"2021-10-30T17:49:33.398921Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"We can see that about 79% users are Man and only 18.8% users are Woman","metadata":{}},{"cell_type":"code","source":"# gender by age group\nfig=px.histogram(data,x=age,color=gender,template='plotly_dark')\nfig.update_layout(\n    title=\"Age group of Kaggle users\",\n    xaxis_title=\"Age group\")\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:33.400926Z","iopub.execute_input":"2021-10-30T17:49:33.401173Z","iopub.status.idle":"2021-10-30T17:49:33.602019Z","shell.execute_reply.started":"2021-10-30T17:49:33.401143Z","shell.execute_reply":"2021-10-30T17:49:33.601008Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"### In which country do you currently reside?\n![](https://www.i-sight.com/wp-content/uploads/2018/10/iStock-466580732-640x300.jpg)","metadata":{"execution":{"iopub.status.busy":"2021-10-28T07:10:00.468525Z","iopub.execute_input":"2021-10-28T07:10:00.46884Z","iopub.status.idle":"2021-10-28T07:10:00.479286Z","shell.execute_reply.started":"2021-10-28T07:10:00.46881Z","shell.execute_reply":"2021-10-28T07:10:00.478362Z"}}},{"cell_type":"code","source":"country=data['Q3'].iloc[1:]\nfig=px.histogram(data,x=country,color=country,width=1600, height=800,template='plotly_dark',orientation='v')\nfig.update_layout(title='Country Distribution',\n                 xaxis_title='Country')\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:33.603166Z","iopub.execute_input":"2021-10-30T17:49:33.603401Z","iopub.status.idle":"2021-10-30T17:49:34.026076Z","shell.execute_reply.started":"2021-10-30T17:49:33.603372Z","shell.execute_reply":"2021-10-30T17:49:34.025291Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"Wow, we can see that majority of users are from India followed by USA","metadata":{}},{"cell_type":"markdown","source":"### What is the highest level of formal education that you have attained or plan to attain within the next 2 years?\n![](https://www.unicef.org/turkey/sites/unicef.org.turkey/files/styles/hero_mobile/public/DSCF0182.jpg?itok=SOjIQmJ1)","metadata":{}},{"cell_type":"code","source":"#pie chart of format education of users\ned=data['Q4'].iloc[1:]\nfig = px.pie(ed, names=ed, title='Formal education of Kagglers',width=1200,height=600,template='plotly_dark')\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:34.027281Z","iopub.execute_input":"2021-10-30T17:49:34.02757Z","iopub.status.idle":"2021-10-30T17:49:34.154322Z","shell.execute_reply.started":"2021-10-30T17:49:34.027533Z","shell.execute_reply":"2021-10-30T17:49:34.153471Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"As expected, most of the users hold a Bachelor's or Master's degree (around 10k each)","metadata":{}},{"cell_type":"markdown","source":"### Select the title most similar to your current role (or most recent title if retired):\n![](https://previews.123rf.com/images/robuart/robuart1807/robuart180701491/105603226-professions-people-vector-icons-set-different-profession-men-and-women-cartoon-characters-in-uniform.jpg)","metadata":{}},{"cell_type":"code","source":"#job title of users \njob=data['Q5'].iloc[1:]\nfig=px.histogram(data,y=job,color=job,width=1200, height=600 ,template='plotly_dark',orientation='h')\nfig.update_layout(title='Profession of Kaggle users',\n                 xaxis_title='Profession')\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:34.15629Z","iopub.execute_input":"2021-10-30T17:49:34.156517Z","iopub.status.idle":"2021-10-30T17:49:34.583143Z","shell.execute_reply.started":"2021-10-30T17:49:34.15649Z","shell.execute_reply":"2021-10-30T17:49:34.582127Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"We can see that most of the users are still student (26.2%) and Profession wise most of them are Data Scientists (13.9%)","metadata":{}},{"cell_type":"markdown","source":"### For how many years have you been writing code and/or programming?\n![](https://i.pinimg.com/736x/5e/f1/f2/5ef1f2339b766b9c15ab11432f543fa9.jpg)","metadata":{}},{"cell_type":"code","source":"#coding experience of users (in years)\nyears=data['Q6'].iloc[1:]\nfig=px.histogram(data,y=years,color=years,width=1200, height=600 ,template='plotly_dark',orientation='h')\nfig.update_layout(title='Years of coding experience',\n                 xaxis_title='Years')\nfig.show()\n","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:34.584772Z","iopub.execute_input":"2021-10-30T17:49:34.585106Z","iopub.status.idle":"2021-10-30T17:49:34.794753Z","shell.execute_reply.started":"2021-10-30T17:49:34.58507Z","shell.execute_reply":"2021-10-30T17:49:34.793864Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"We can see that most of us are beginners (like me) who have 0-3 years of coding experience , surprisingly there are 1032 people who have never written code.","metadata":{}},{"cell_type":"markdown","source":"### What type of computing platform do you use most often for your data science projects? \n![](https://images.martechadvisor.com/images/uploads/content_images/best_cloud_computing_platforms_for_midsized_businesses_5c473d795ab87.jpg)","metadata":{}},{"cell_type":"code","source":"platform=data['Q11'].iloc[1:].dropna()\nfig=px.histogram(data,x=platform,color=platform,width=1200, height=600,template='plotly_dark',orientation='v')\nfig.update_layout(title='Coding Platform',\n                 xaxis_title='Platform')\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:34.795966Z","iopub.execute_input":"2021-10-30T17:49:34.796203Z","iopub.status.idle":"2021-10-30T17:49:35.00513Z","shell.execute_reply.started":"2021-10-30T17:49:34.796176Z","shell.execute_reply":"2021-10-30T17:49:35.002684Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"Most of us prefer laptop and Personal computers to code","metadata":{"execution":{"iopub.status.busy":"2021-10-28T10:58:48.45807Z","iopub.execute_input":"2021-10-28T10:58:48.458392Z","iopub.status.idle":"2021-10-28T10:58:48.46693Z","shell.execute_reply.started":"2021-10-28T10:58:48.458359Z","shell.execute_reply":"2021-10-28T10:58:48.466388Z"}}},{"cell_type":"markdown","source":"### 'In what industry is your current employer/contract (or your most recent employer if retired)?'\n![](https://images.livemint.com/rf/Image-621x414/LiveMint/Period1/2016/01/04/Photos/sector-web-km7G--621x414@LiveMint.jpg)","metadata":{"execution":{"iopub.status.busy":"2021-10-29T06:00:25.093387Z","iopub.execute_input":"2021-10-29T06:00:25.093735Z","iopub.status.idle":"2021-10-29T06:00:25.100355Z","shell.execute_reply.started":"2021-10-29T06:00:25.0937Z","shell.execute_reply":"2021-10-29T06:00:25.099698Z"}}},{"cell_type":"code","source":"emp=data['Q20'].iloc[1:].dropna()\nfig=px.histogram(data,x=emp,color=emp,width=1200, height=600,template='plotly_dark',orientation='v')\nfig.update_layout(title='Employer/Contract Status',\n                 xaxis_title='Employment Industry')\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:35.006739Z","iopub.execute_input":"2021-10-30T17:49:35.007079Z","iopub.status.idle":"2021-10-30T17:49:35.217945Z","shell.execute_reply.started":"2021-10-30T17:49:35.007031Z","shell.execute_reply":"2021-10-30T17:49:35.21715Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"As expected , most of the users are from Computer/Technology industry and Academics/Education since most of us are students","metadata":{"execution":{"iopub.status.busy":"2021-10-29T06:02:04.524987Z","iopub.execute_input":"2021-10-29T06:02:04.525525Z","iopub.status.idle":"2021-10-29T06:02:04.533513Z","shell.execute_reply.started":"2021-10-29T06:02:04.525492Z","shell.execute_reply":"2021-10-29T06:02:04.532466Z"}}},{"cell_type":"markdown","source":"### 'What is your current yearly compensation (approximate $USD)?\n![](https://assets-global.website-files.com/5b5aa355afe474a8b1329a37/5fc4f47c4398749f82863b3b_comp-strat.jpg)","metadata":{}},{"cell_type":"code","source":"comp=data['Q25'].iloc[1:].dropna()\nfig=px.histogram(data,y=comp,color=comp,width=1200, height=600,template='plotly_dark',orientation='h')\nfig.update_layout(title='Current Yearly Compensation (USD)',\n                 xaxis_title='Compensation')\nfig.show()","metadata":{"execution":{"iopub.status.busy":"2021-10-30T17:49:35.219125Z","iopub.execute_input":"2021-10-30T17:49:35.219913Z","iopub.status.idle":"2021-10-30T17:49:35.577248Z","shell.execute_reply.started":"2021-10-30T17:49:35.219869Z","shell.execute_reply":"2021-10-30T17:49:35.576634Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"We can see that most frequently occuring is '0-999' since most of us are students , interesting to see that 58 people have yearly compensation greater than 1 million","metadata":{}},{"cell_type":"markdown","source":"## The End","metadata":{"execution":{"iopub.status.busy":"2021-10-29T06:15:43.098256Z","iopub.execute_input":"2021-10-29T06:15:43.098754Z","iopub.status.idle":"2021-10-29T06:15:43.102507Z","shell.execute_reply.started":"2021-10-29T06:15:43.098701Z","shell.execute_reply":"2021-10-29T06:15:43.101817Z"}}},{"cell_type":"markdown","source":"We found many interesting insights from the dataset , you can explore more interesting insights from the dataset as i didn't visualize every question on survey.\nUpvote the notebook if you find it interesting and i'll try to come up with more interesting and better notebooks , Thanks for having a look and have a nice day!!","metadata":{}}]}