Skip to main content

Get insights from the Euro 2020 data.

Project description

Euro 2020 API ⚽️

About the API | How to use | Reference | Documentation | Github


About the API

Working with data from Euro 2020. Get insightful charts and informations from player and team performance during the competition using statsbomb and fbref data.


How to use

Libraries needed

pip install pandas
pip install time
pip install matplolib.pyplot
pip install seaborn
pip install numpy
pip install sklearn
pip install math
pip install mplsoccer
pip install soccerpllots

Installing the API

pip install Euro2020_API

Importing the API

from Euro2020_API import Stats

Methods

Method: What the method does:
SimilarOffense(player_name) Returns a dataset with similar players(Forwards and Midfileders) related to the one you choose by a KMeans model.
SimlarDefense(player_name) Returns a dataset with similar players(Defenders and Midfileders) related to the one you choose by a KMeans model.
RadarChartOff(player1, player2) Returns a Radar chart comparing two offensive players performance and a scatterplot that shows their grade and salary.
RadarChartDef(player1, player2) Returns a Radar chart comparing two defensive players performance and a scatterplot that shows their grade and salary.
RadarChartGK(player1, player2) Returns a Radar chart comparing two Goalkeepers performance and a scatterplot that shows their grade and salary.
Scorers() Returns a dataframe with the players who had high number of goals.
Passers() Returns a dataframe with the players who had high number of assists and passing percentage.
get_player(player_name) Returns a dataframe with every Fbref info abouth them during the Euro.

Parameters:

  • player_name= Name of the player you want.
  • player1,player2 = Name of the two players you desire to compare.

  • Github Repository

    Repository with the documentation and examples of how to use the package.

    • https://github.com/AnabeatrizMacedo241/Euro2020_API

    Reference

    • https://fbref.com
    • https://github.com/statsbomb

    Project details


    Download files

    Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

    Source Distribution

    Euro2020_API-0.0.1.tar.gz (5.3 kB view hashes)

    Uploaded Source

    Supported by

    AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page