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]: LeagueDashPlayerStats returning nothing #468

Closed
dylanlauzy opened this issue Oct 13, 2024 · 1 comment
Closed

[Bug]: LeagueDashPlayerStats returning nothing #468

dylanlauzy opened this issue Oct 13, 2024 · 1 comment
Labels
bug Something isn't working triage Researching into a possible bug

Comments

@dylanlauzy
Copy link

NBA API Version

v1.6.0

Issue

Trying to use LeagueDashPlayerStats endpoints but getting nothing in response

  • Confirmed that other endpoints like PlayerCareerStats work within the same python environment
  • Have tried changing some parameters like season, last_n_games with no success

Code

from nba_api.stats.endpoints import leaguedashplayerstats

print(leaguedashplayerstats.LeagueDashPlayerStats().league_dash_player_stats.get_data_frame())

output

Empty DataFrame
Columns: [PLAYER_ID, PLAYER_NAME, NICKNAME, TEAM_ID, TEAM_ABBREVIATION, AGE, GP, W, L, W_PCT, MIN, FGM, FGA, FG_PCT, FG3M, FG3A, FG3_PCT, FTM, FTA, FT_PCT, OREB, DREB, REB, AST, TOV, STL, BLK, BLKA, PF, PFD, PTS, PLUS_MINUS, NBA_FANTASY_PTS, DD2, TD3, WNBA_FANTASY_PTS, GP_RANK, W_RANK, L_RANK, W_PCT_RANK, MIN_RANK, FGM_RANK, FGA_RANK, FG_PCT_RANK, FG3M_RANK, FG3A_RANK, FG3_PCT_RANK, FTM_RANK, FTA_RANK, FT_PCT_RANK, OREB_RANK, DREB_RANK, REB_RANK, AST_RANK, TOV_RANK, STL_RANK, BLK_RANK, BLKA_RANK, PF_RANK, PFD_RANK, PTS_RANK, PLUS_MINUS_RANK, NBA_FANTASY_PTS_RANK, DD2_RANK, TD3_RANK, WNBA_FANTASY_PTS_RANK]
Index: []
@dylanlauzy dylanlauzy added bug Something isn't working triage Researching into a possible bug labels Oct 13, 2024
@dylanlauzy
Copy link
Author

Fix: just had to change season param, default is Season.current_season which is "{current calendar year}-{current calendar year + 1}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Researching into a possible bug
Projects
None yet
Development

No branches or pull requests

1 participant