Skip to main content
100%

Gist bc8f07f831e90294024860ced25860a2

✓ Published0🌍 Public
CConorAspell
Last edited Dec 5, 2023
Created on Sep 11, 2023

This visualization tracks English Premier League betting odds and team probabilities across a gameweek. It combines player and fixture data from the Fantasy Premier League API with head-to-head odds from the Odds API, filtering matches that fall between upcoming deadlines. The code uses pandas DataFrames to merge team names, calculates implied win chances from bookmaker odds (Paddy Power), and uploads the resulting CSV to an S3 bucket via a custom `fpl_utils` helper module. The process runs as an AWS Lambda function, with error handling that triggers SNS notifications on failure.

AI-generated description

Similar vizzes