Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 12

Project-1

Data Analysis and Visualization using Python

FIFA WORLD CUP

Presented By
Name: JAY RAJ GUIDED BY
Regn. No.:220101130075, Dr.Abhishek das
Department of ECE, Assistant Professor,
Section: D Department of CSE,
3rd Semester SoET, CUTM
Contents

Introduction
Importance
Dataset Description
Challenges
Conclusion
References

11/11/2023 2
Introduction

• The FIFA World Cup is an international football tournament that takes place every four years, bringing
together the best national teams from around the world to compete for the title of world champion. It is
organized by FIFA, the international governing body of football, and is one of the most popular and widely
watched sporting events in the world. The tournament is hosted by a different country each time, with the
host nation providing the venues and infrastructure for the matches. The first FIFA World Cup was held in
1930 and since then it has grown in size and popularity, with millions of fans tuning in to watch the
matches and support their favorite teams. The World Cup is not only a celebration of football, but also a
cultural and social event that brings people from different countries and backgrounds together.

11/11/2023 3
Importance

The FIFA World Cup is like the biggest soccer party on the planet.
Every four years, countries from all over the world join in. They play
exciting football matches, and people everywhere celebrate their
teams. It's an event full of joy, goals, and national pride!"
Dataset Description
1.Declaration
import pandas as pd
import plotly.express as px
import plotly.graph_objects as go
from plotly.subplots import make_subplots

2. Reading our data


wc = pd.read_csv('/content/WorldCups.csv')
teams=pd.read_csv('/content/WorldCupPlayers.csv')
matches =pd.read_csv('/content/WorldCupMatches.csv')

 These are the our data set


21 rows and 10 columns are define
wc.head()

Year Country Winner Runners-Up Third Fourth GoalsScored QualifiedTeams MatchesPlayed Attendance

0 1930 Uruguay Uruguay Argentina USA Yugoslavia 70 13 18 590.549

1 1934 Italy Italy Czechoslovakia Germany Austria 70 16 17 363.000

2 1938 France Italy Hungary Brazil Sweden 84 15 18 375.700

3 1950 Brazil Uruguay Brazil Sweden Spain 88 13 22 1.045.246

4 1954 Switzerland Germany FR Hungary Austria Uruguay 140 16 26 768.607


YEARS WISE TOTAL GOALS SCORED OF FIFA WORLD CUP
years = wc['Year’]
goals = wc['GoalsScored’]

fig1 = px.line(x=years, y=goals, title='FIFA World Cup Goals Over the Years’)

fig1.update_xaxes(title='Year’)
fig1.update_yaxes(title='Goals Scored') fig1.show()
SHOW THE WINNER AND GOALS SCORED USING BAR CHART CODE

Winner = wc[‘winner’]
Goals = wc[‘GoalsScored’]
Fig2 = px.bar(x=winner, y=goals, title=‘Goals Scored by FiFa world cup teams’)

Fig2.update_xaxis(title_test=‘winner’)
Fig2.update_yaxis(title_test=‘Goals Scored’)
PIE CHART

team_name = 'USA’
team_matches = matches[(matches['Home Team Name'] == team_name)
| (matches['Away Team Name'] == team_name)]

result_counts = team_matches['Home Team Goals'].value_counts()


fig3 = go.Figure(data=[go.Pie(labels=result_counts.ind ex, values=result_counts.values)])
fig3.update_traces(textinfo='percent+label', title='Goals for ' + team_name)
CHALLENGES

• 1. Logistics: Managing travel, accommodation, and infrastructure for teams


and fans.
• 2. Security: Ensuring the safety of players, spectators, and host cities.
• 3. Costs: Funding the event and managing expenses.
• 4. Environmental impact: Minimizing the tournament's ecological footprint.
• 5. Competition: Maintaining fair play and competitiveness among teams.
CONCLUSION
In conclusion, the Python project on the FIFA World Cup has provided valuable insights and
functionalities related to this prestigious sporting event. Through the project, we have demonstrated
the power and versatility of Python in handling and analyzing data, as well as building interactive
applications.
References

https://www.kaggle.com/datasets/die9origephit/fifa-world-cup-2022-
complete-dataset

11/11/2023 12

You might also like