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

# TOKYO OLYMPICS(2021) DATA ANALYSIS

The goal of the Olympic Movement is to contribute to building a peaceful and better world by educating youth through sport practiced without discrimination of any kind and in the Olympic spirit, which requires mutual understanding with a spirit of friendship, solidarity and fair play.Sport is one of the most powerful platforms for promoting gender equality and empowering women and girls.The Olympic games originated in Ancient Greece where different cities would send their representatives to different competitions. These events were mainly athletic but some did involve combat and chariot racing. These events were of religious significance as the events had their roots in rituals that honored the god Zeus. The events were held between intervals of 4 years and this period was known as Olympiad. The Olympiads were used as means to measure a time period. Winning these events meant recognition and money.The interlocking rings of the Olympic flag was created by Baron Pierre de Coubertin, the co-founder of the modern Olympic games. The five rings represented the five participating continents of the time: Africa, Asia, America, Europe, and Oceania. While the colors of the five rings, blue, yellow, black, green, and red together with the white background of the flag could compose the colors of every nation’s flag at the time of its inception as the official Olympic symbol in 1915.
Olympics was scheduled for the Year 2020.But due to covid19 pandemic,it was postponed by the Year.So,finally tis year in 2021 olympics was held.It started on 23rd July and ended on 08th August,2021.Every eye was stuck at the Olympic games last month.I too had keen interest that how my nation is performing and how many medals we would be gathering.Luckily i got the dataset and analysed it.

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.

Downloading the Dataset

The dataset of olympics 2020(2021) has been downloaded from https://www.kaggle.com/arjunprasadsarkhel/2021-olympics-in-tokyo

!pip install jovian opendatasets --upgrade --quiet

Let's begin by downloading the data, and listing the files within the dataset.