This project aims to analyze data from previous editions of the Olympics to gain valuable insights and provide hands-on experience in data analysis. It was created as a learning project inspired by a tutorial video from the YouTube channel CampusX. The video teaches how to use a Kaggle dataset of Olympics data to create a web app using Streamlit, which allows for interactive data exploration and analysis.
- Fetch and display medal tallies for different countries and years.
- Visualize data trends over time.
- Identify the most successful athletes and countries.
- Analyze the distribution of athletes' height and weight across different sports.
- Compare the participation of men and women over the years.
- Interactive plots and visualizations for a comprehensive understanding of the data.
The dataset used for this project is sourced from Kaggle. It contains detailed information about Olympic athletes, their performance, and the events they participated in.
To get started with the project, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/olympics-data-analysis-webapp.git cd olympics-data-analysis-webapp
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Download the dataset: Download the dataset from Kaggle and place it in the project directory.
To run the Streamlit web app:
-
Activate the virtual environment (if not already activated):
source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Run the Streamlit app:
streamlit run app.py
-
Open your web browser and go to:
http://localhost:8501
-Olympics-data-analysis-webapp/ -app.py # Main script to run the Streamlit app -helper.py # Helper functions for data processing and visualization -requirements.txt # List of required Python packages -README.md # Project documentation -athlete_events.csv # Downloaded dataset from Kaggle
I would like to thank the CampusX YouTube channel for their amazing tutorial video. The clear and detailed explanation helped me understand the concepts of data science and data analysis in more depth.