Skip to content

PlayerProfileV2 returning empty dataframe for Career Highs #562

Closed

Description

@Salvlormonch1

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

  1. self-assigned this
    on Sep 11, 2025
  2. added
    triage
    on Sep 11, 2025
  3. rsforbes commented on Oct 3, 2025

    @rsforbes
    Contributor

    @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.

    from nba_api.stats.endpoints import playerprofilev2
    from nba_api.stats.library.parameters import LeagueID
    playerprofilev2.PlayerProfileV2(player_id=201939).get_request_url()
    
    profile = playerprofilev2.PlayerProfileV2(player_id=201939, league_id_nullable=LeagueID.nba)
    profile.get_data_frames()[0]
  4. added
    bug
    and removed
    triage
    on Oct 3, 2025
  5. linked a pull request that will close this issuev1.11.3 #592on Nov 12, 2025
  6. added a commit that references this issue on Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions