sportsipy icon indicating copy to clipboard operation
sportsipy copied to clipboard

Wrong stats for NBA home teams

Open jernej19 opened this issue 4 years ago • 2 comments

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.

jernej19 avatar Nov 16 '20 11:11 jernej19

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?

jiwoongim avatar Nov 25 '20 19:11 jiwoongim

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

andrewduffey avatar Dec 07 '20 03:12 andrewduffey