sertalpbilal / FPL-Optimization-Tools

A collection of tutorials and recipes to use optimization for winning Fantasy Premier League :)
Apache License 2.0
122 stars 43 forks source link

Tutorial 1. Goalkeeper Problem #2

Closed ejlamarque closed 2 years ago

ejlamarque commented 2 years ago

Hello, Maybe somebody could help with this?

Everything seems to work fine until the in 12 "lineup[7]" where return the following message: C:\Users\user\AppData\Local\Temp/ipykernel_14624/4074622826.py:1: RuntimeWarning: Requested variable group is empty: lineup[7] (<class 'int'>) lineup[7] I update sasoptpy to a newest version as suggesting some comment on youtube, try to rerun all again, and even Jupyter notebook with different approaches, and routes, but always the same. Somebody kindle could help me with this please? Thank you Enrique

sertalpbilal commented 2 years ago

Hi! I think lineup[7] refers to player with ID 7. If you have been following the tutorial, that value should be from the last year (Leno's ID) but I think it is different this year. Can you tell me what you see when you run

gk_data.head()
ejlamarque commented 2 years ago

You are right. The problem is that at different data there are different ID. Sorry and Thank you for your time. Probably will not be the last.