Skip to main content
100%

Gist f284381bb142623d89f9aa34c2a7b15d

✓ Published0🌍 Public
CConorAspell
Last edited Dec 12, 2021
Created on Dec 12, 2021

This example visualizes the upcoming gameweek’s fixture odds and player selection data, showing the probability of each team winning or drawing as derived from betting odds. The code fetches player and fixture data from the Fantasy Premier League API, merges it with daily odds stored in an S3 bucket, and calculates a “diff” metric comparing home and away win chances. Using pandas for data manipulation and the `requests` library for API calls, it outputs a combined player–fixture dataframe that highlights favorable matchups. The visualization runs as an AWS Lambda function, triggered on demand to refresh the data.

AI-generated description

Similar vizzes