roclark / sportsipy

A free sports API written for python
MIT License
482 stars 188 forks source link

Wrong stats for NBA home teams #539

Open jernej19 opened 3 years ago

jernej19 commented 3 years ago

When calling game.dataframe_extended for Schedule module, home stats are incorrect. All stats which are not in percentage are wrong. For example matchId 201810190MEM where correct field goal attempts is 81, I got 25. The same goes for every other home statistic.

jiwoongim commented 3 years ago

I also notice the same thing. https://www.basketball-reference.com/boxscores/202010020LAL.html

202010020LAL game score is 124:114 But the API returns 56 for home team.

boxscore_obj = nba_boxscore.Boxscore(gamecode)
(Pdb) boxscore_obj.__getattribute__('home_points')
56

Sidenote: I haven't checked whether the boxscore for players is correct or not either. Given that home team stats are wrong, I am worried that player boxscore stats might be wrong too?

andrewduffey commented 3 years ago

It looks like this is fixed on the master branch and will be in the next release, see #505