Python
Python
Python
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
Year Country Winner Runners-Up Third Fourth GoalsScored QualifiedTeams MatchesPlayed Attendance
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)]
https://www.kaggle.com/datasets/die9origephit/fifa-world-cup-2022-
complete-dataset
11/11/2023 12