You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PlayerProfileV2 returning empty dataframe for Career Highs #562
I was using the playerprofilev2 endpoint to get career highs for players and it worked fine until a few months ago. Now I tried to use the same code to get the updated career highs from the last playoffs and it wasn't working. I tried to use this simpler code to test if it was the endpoint or it was my code and it was returning an empty dataframe.
from nba_api.stats.static import players
from nba_api.stats.endpoints import playerprofilev2, playergamelogs
import pandas as pd
import re
profile = playerprofilev2.PlayerProfileV2(player_id=201939)
df = profile.get_data_frames()[0]
print(df)
Activity
rsforbes commentedon Oct 3, 2025
@Salvlormonch1 - There could be a bug in the code related to the default league. The following should work using v1.10.2 of the api.
v1.11.3