Learn practical skills, build real-world projects, and advance your career

Quota of Use of Operating Systems by Developers in 2020

This data analysis is the final project from the course Zero To Pandas from Jovian.ml. I will use the 2020 survey results, from Stack Overflow to calculate and visualize the amount of developers using the different operating systems. We can expect to see Windows as the reigning champion of the operating systems, but I'm particularly interested in the performance of Linux and MacOS.

How to run the code

This is an executable Jupyter notebook hosted on Jovian.ml, a platform for sharing data science projects. You can run and experiment with the code in a couple of ways: using free online resources (recommended) or on your own computer.

Option 1: Running using free online resources (1-click, recommended)

The easiest way to start executing this notebook is to click the "Run" button at the top of this page, and select "Run on Binder". This will run the notebook on mybinder.org, a free online service for running Jupyter notebooks. You can also select "Run on Colab" or "Run on Kaggle".

Option 2: Running on your computer locally
  1. Install Conda by following these instructions. Add Conda binaries to your system PATH, so you can use the conda command on your terminal.

  2. Create a Conda environment and install the required libraries by running these commands on the terminal:

conda create -n zerotopandas -y python=3.8 
conda activate zerotopandas
pip install jovian jupyter numpy pandas matplotlib seaborn opendatasets --upgrade
  1. Press the "Clone" button above to copy the command for downloading the notebook, and run it on the terminal. This will create a new directory and download the notebook. The command will look something like this:
jovian clone notebook-owner/notebook-id
  1. Enter the newly created directory using cd directory-name and start the Jupyter notebook.
jupyter notebook

You can now access Jupyter's web interface by clicking the link that shows up on the terminal or by visiting http://localhost:8888 on your browser. Click on the notebook file (it has a .ipynb extension) to open it.

Setting The Environment

First, let's install and import some modules in Python.

!pip install pandas numpy matplotlib seaborn opendatasets --upgrade
Requirement already up-to-date: pandas in /srv/conda/envs/notebook/lib/python3.8/site-packages (1.1.2) Requirement already up-to-date: numpy in /srv/conda/envs/notebook/lib/python3.8/site-packages (1.19.2) Requirement already up-to-date: matplotlib in /srv/conda/envs/notebook/lib/python3.8/site-packages (3.3.2) Requirement already up-to-date: seaborn in /srv/conda/envs/notebook/lib/python3.8/site-packages (0.11.0) Requirement already up-to-date: opendatasets in /srv/conda/envs/notebook/lib/python3.8/site-packages (0.1.0) Requirement already satisfied, skipping upgrade: pytz>=2017.2 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from pandas) (2020.1) Requirement already satisfied, skipping upgrade: python-dateutil>=2.7.3 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from pandas) (2.8.1) Requirement already satisfied, skipping upgrade: cycler>=0.10 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from matplotlib) (0.10.0) Requirement already satisfied, skipping upgrade: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from matplotlib) (2.4.7) Requirement already satisfied, skipping upgrade: kiwisolver>=1.0.1 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from matplotlib) (1.2.0) Requirement already satisfied, skipping upgrade: pillow>=6.2.0 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from matplotlib) (7.2.0) Requirement already satisfied, skipping upgrade: certifi>=2020.06.20 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from matplotlib) (2020.6.20) Requirement already satisfied, skipping upgrade: scipy>=1.0 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from seaborn) (1.5.2) Requirement already satisfied, skipping upgrade: tqdm in /srv/conda/envs/notebook/lib/python3.8/site-packages (from opendatasets) (4.48.2) Requirement already satisfied, skipping upgrade: six>=1.5 in /srv/conda/envs/notebook/lib/python3.8/site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import opendatasets as od
from urllib.request import urlretrieve