Sports Analytics con Python: Comparando los partidos con mayor y menor actividad ofensiva del Mundial FIFA 2026

Imagen
¿Qué hace realmente emocionante a un partido de fútbol? Cuando hablamos de un gran partido solemos pensar inmediatamente en muchos goles. Sin embargo, en Sports Analytics la producción ofensiva puede analizarse desde una perspectiva mucho más amplia utilizando estadísticas avanzadas. En este proyecto desarrollé un Match Excitement Score (MES) , un índice que resume la actividad ofensiva de cada encuentro del Mundial FIFA 2026 mediante una combinación de métricas tradicionales y avanzadas. Todo el análisis fue realizado en Python utilizando Pandas y Matplotlib, compartiendo además el notebook completo para que cualquier persona pueda reproducir los resultados. ¿Cómo se construyó el Match Excitement Score? El índice integra seis variables ofensivas disponibles en el dataset: ⚽ Goles 📈 Expected Goals (xG) 🎯 Total de disparos 🥅 Disparos a puerta 🔥 Big Chances 📍 Toques dentro del área rival Cada variable fue estandarizada mediante Z-score y posteriormente ...

Which FIFA World Cup 2026 Match Should You Watch Again? A Python Data Analysis

Which FIFA World Cup 2026 Match Should You Watch Again?

After every FIFA World Cup, one question always comes up:

Which matches are worth watching again?

Instead of answering this question based on personal opinion, I decided to analyze every match from the FIFA World Cup 2026 using Python, Pandas and Matplotlib.

The objective was simple:

  • Find the matches with the most goals.
  • Identify the strongest defensive performances.
  • List every game that required extra time.
  • Show every match decided by a penalty shootout.

The result is a collection of custom visualizations generated entirely with Python using the FIFA World Cup 2026 dataset.




⚽ Highest Scoring Matches

If you enjoy attacking football and goal-filled games, this ranking is the perfect place to start.

Using the official match results, I ranked every match by the total number of goals scored by both teams.

The visualization highlights the ten highest-scoring matches of the tournament.


NOTE : England are twice on the chart.



🛡 Best Defensive Matches

Great football isn't always about scoring goals.

Some of the tournament's most exciting matches were decided by incredible defensive performances.

For this visualization I created a defensive index combining tackles, interceptions, goalkeeper saves and goals conceded to identify the strongest defensive battles.


NOTE: Spain and Cape Verde twice on the list


⏱ Matches That Went to Extra Time

Some matches simply couldn't be decided after 90 minutes. NOT Penalty Shootout

This visualization shows every game that reached extra time, including the score at the end of regular time and the final result after 120 minutes.

It also indicates the tournament stage where each dramatic encounter took place.


NOTE: Argentina has 3 of 5 on the list


🥅 Matches Decided by Penalty Shootout

Penalty shootouts represent the highest level of tension in football.

This visualization includes every match that required penalties, displaying both the score before the shootout and the final penalty result.


NOTE: I think all matches are good to rewatch


Built with Python

All visualizations were created using:

  • Python
  • Pandas
  • Matplotlib
  • Jupyter Notebook

The project uses the FIFA World Cup 2026 dataset to transform raw match statistics into publication-ready sports visualizations.


From Charts to Insights

While each chart reveals a different aspect of the FIFA World Cup 2026, combining all of them provides an even more interesting perspective. The following table summarizes how often each national team appeared across all analyzed categories, making it easier to identify which teams were involved in the tournament's most memorable matches according to the data

National Team Appearances Featured Categories
🇨🇭 Switzerland 4 Highest Scoring Matches • Best Defensive Matches • Extra Time • Penalty Shootouts
🇧🇪 Belgium 3 Highest Scoring Matches • Best Defensive Matches • Extra Time
🏴 England 3 Highest Scoring Matches (2) • Extra Time
🇪🇸 Spain 3 Best Defensive Matches • Extra Time (2)
🇦🇷 Argentina 3 Best Defensive Matches • Extra Time (2)

GitHub Repository

The complete source code used to generate every visualization is available on GitHub.

👉 GitHub Repository:
https://github.com/zelideth27-lab/fifa-world-cup-2026-analysis_v3


Conclusion

Every football fan enjoys the game differently.

  • ⚽ Love goals? Start with the highest-scoring matches.
  • 🛡 Prefer tactical football? Explore the defensive rankings.
  • ⏱ Enjoy dramatic endings? Watch the extra-time matches.
  • 🥅 Want maximum suspense? The penalty shootouts are unforgettable.

This project demonstrates how Python can transform sports data into engaging visual stories while helping fans rediscover some of the best moments from the FIFA World Cup 2026.

Comentarios

🚀 Mantener este blog funcionando requiere tiempo y café. ¡Puedes contribuir con uno aquí!

Entradas más populares de este blog

Guía Práctica: Ejemplo Completo de ASPX para Desarrolladores Web

👉 Cómo obtener el tipo de cambio en Excel con API de Banxico (paso a paso)

Macro en Word para automatizar documentos: genera diplomas en segundos (con código VBA)