Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Incorrect playercareerstats for career total #501

Open
PeterWuCs opened this issue Jan 20, 2025 · 1 comment
Open

[Bug]: Incorrect playercareerstats for career total #501

PeterWuCs opened this issue Jan 20, 2025 · 1 comment
Labels
endpoint: third-party issue Issues, unrelated to the library, that exists within the 3rd-party's API service.

Comments

@PeterWuCs
Copy link

NBA API Version

1.7

Issue

Hi there, 
For getting player's career stats, I notice that there are mistakes with the number. 
For career.get_data_frames()[1], I am not too sure what the numbers are displaying; I am assuming it is the regular season career total; however, the number does not match. So I wonder what is acctualy meant or there is bug with it.

For career.get_data_frames()[3], I am pretty sure it is meant to display the postseason career total; however, it is displaying the wrong numbers right now. It looks like it is adding the current postseason career total with the total from the latest postseason.

For example, as displayed nba.com , Nikola Jokić has scored 1869 points in total in the playoffs; however, the API is returning 2213 for it, which is 1869 + 344, and 344 being the total points for his 2023-24 playoffs. And all other stats seem to follow the same pattern.

Thank you.

Code

from nba_api.stats.endpoints import playercareerstats

Nikola Jokić

career = playercareerstats.PlayerCareerStats(player_id='203999')

print(career.get_data_frames()[1])

print(career.get_data_frames()[3])

@PeterWuCs PeterWuCs added bug Something isn't working triage Researching into a possible bug labels Jan 20, 2025
@rsforbes
Copy link
Collaborator

@PeterWuCs - The issue would exist on the NBA's side. Either an issue with their API or missing params on the call.

@rsforbes rsforbes added endpoint: third-party issue Issues, unrelated to the library, that exists within the 3rd-party's API service. and removed bug Something isn't working triage Researching into a possible bug labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
endpoint: third-party issue Issues, unrelated to the library, that exists within the 3rd-party's API service.
Projects
None yet
Development

No branches or pull requests

2 participants