[Bug]: Road Games not returning from cumestatsplayergames when using "location_nulalble" parameter #418
Labels
endpoint: third-party issue
Issues, unrelated to the library, that exists within the 3rd-party's API service.
NBA API Version
1.4.1
Issue
I've been attempting to pull player stats for road games using the cumestatsplayergame endpoint. However, whenever I attempt to build a dataframe with just road data, it comes back empty. I've attempted the exact same call with home games with no issue.
When I make a call without the "location_nullable" parameter, all games return, including home and road games.
I can still get the data I need without using the location parameter, but I wanted to report this in case there is an issue within the API
Code
Fails to return any data:
awayLog = cumestatsplayergames.CumeStatsPlayerGames(
player_id=203999,
league_id='00',
season='2022-23',
season_type_all_star='Regular Season',
location_nullable='Road'
).get_data_frames()[0][:100]
returns data without issue:
homeLog = cumestatsplayergames.CumeStatsPlayerGames(
player_id=203999,
league_id='00',
season='2023-24',
season_type_all_star='Regular Season',
location_nullable='Home'
).get_data_frames()[0][:100]
The text was updated successfully, but these errors were encountered: