Gist 200193de82b0d445df3dd79fd4c9f792
✓ Published0🌍 Public
CConorAspell
Last edited Oct 6, 2022
Created on Oct 6, 2022
This visualization recommends Fantasy Premier League (FPL) transfers and starting lineups by analyzing player data. It shows a suggested player substitution, optimal starting eleven, captain pick, and bench order based on calculated in/out weights. The code fetches a user’s current team via the FPL API, merges it with precomputed player statistics from a CSV stored in Amazon S3, and applies a greedy selection algorithm. It uses Python with pandas for data manipulation, requests for API calls, and boto3 for S3 retrieval, exposing results through an AWS Lambda function via API Gateway.
AI-generated description