swar / nba_api

An API Client package to access the APIs for NBA.com
MIT License
2.54k stars 542 forks source link

[Bug]: different matchup statistics from boxscorematchupsv3 vs those found on nba.com's matchup tracking box scores #451

Closed lebrennie closed 5 months ago

lebrennie commented 5 months ago

NBA API Version

1.4.1

Issue

I've noticed several games where the matchup statistics generated from boxscorematchupsv3 differ entirely from those found on the corresponding game page on nba.com.

Some examples: After running this code df = boxscorematchupsv3.BoxScoreMatchupsV3(game_id='0042300154').get_data_frames()[0], you will see LeBron is credited with 0 'playerPoints' when guarded by Aaron Gordon. However, the game page (https://www.nba.com/game/den-vs-lal-0042300154/box-score?type=matchups) shows LeBron scored 12 points while guarded by Gordon.

This code df4 = boxscorematchupsv3.BoxScoreMatchupsV3(game_id='0022301164').get_data_frames()[0] shows Naz Reid scored 5 points when guarded by Aaron Gordon. The corresponding game page (https://www.nba.com/game/min-vs-den-0022301164/box-score?type=matchups) shows it should be 4 points. Also, many of the other statistics like partial possessions are different.

I've only checked a few games, so I don't know how pervasive the issue is. Thanks for your time.

Code

No response

lebrennie commented 5 months ago

Sorry my mistake, was not updated to 1.4.1