Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🏆 World Cup Matches — Data Analysis & Visualization

A Python project performing exploratory data analysis (EDA) and visualization on historical FIFA World Cup match data using Pandas, Seaborn, and Matplotlib.


📁 Repository Structure

world_cup_matches_data_analysis/
├── worldcup.py             # Main analysis script
├── WorldCupMatches.csv     # Dataset
└── README.md

📊 Dataset

WorldCupMatches.csv — Match-level data from FIFA World Cup tournaments, including home/away teams, goals scored, year, stage, and more.


🔧 Requirements

  • Python 3.x
  • pandas
  • seaborn
  • matplotlib

Install dependencies:

pip install pandas seaborn matplotlib

🚀 Usage

python worldcup.py

📝 Features

1. Data Analysis

Step Description
Shape Prints number of rows and columns using df.shape
Column Names Lists all column names in the DataFrame
Slicing Displays rows 10–20 using df.iloc[10:21]
Summary Statistics Uses df.describe() for min, max, mean, std, etc.
Min / Max Finds minimum and maximum Home Team Goals

2. Data Cleaning

  • Missing Value Detectiondf.isnull().sum() counts nulls per column
  • Imputation — Fills missing numerical values using column mean/median via df.fillna()
  • Correlation Matrix — Computes pairwise correlations across all numeric columns using df.corr()

3. Data Visualization

Plot Library Description
Pairplot Seaborn Pairwise relationships across all numeric columns
Boxplot Seaborn Distribution and outlier detection
Heatmap Seaborn Correlation matrix with coolwarm colormap
Bar Plot Seaborn Home Team Goals vs Away Team Goals
Histogram Matplotlib Distribution of Away Team Goals
Distribution Plot Seaborn KDE + histogram for Home Team Goals
Scatter Plot Seaborn Home vs Away goals with individual data points

👤 Author

Rahul Biswas GitHub: @RahulBiswas224


📄 License

This project is open source and available for educational purposes.

About

Historical FIFA World Cup analytics hub featuring statistical data imputation, correlation matrices, and predictive feature distributions using Seaborn.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages