vaastav / Fantasy-Premier-League

Creates a .csv file of all players in the English Player League with their respective team and total fantasy points
Other
1.44k stars 805 forks source link

The Merged Data for Season 2022-23 Contains More Columns than Expected from the Header #146

Closed ndrer closed 1 year ago

ndrer commented 1 year ago

If you load the merged_gw data for Season 2022-23 into Pandas, it returns error: "Error tokenizing data. C error: Expected 36 fields in line 7247, saw 41". There are some superfluous zeroes in the data for GW 15.

vaastav commented 1 year ago

Hmm looks like the FPL API added extra fields for players starting from GW15. That's why you are seeing the extra columns/superflous 0s. But looks like FPL will be providing xG, xA, xGI stats at some point in the future (perhaps after the world cup)

vaastav commented 1 year ago

I'll post a fix along with the GW12 fix in the coming week.

vaastav commented 1 year ago

This is fixed now.