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

Retrieve FGA, FGM and FTA, FTM stats for NBA Players #48

Open
sherabgashon opened this issue Nov 10, 2023 · 1 comment
Open

Retrieve FGA, FGM and FTA, FTM stats for NBA Players #48

sherabgashon opened this issue Nov 10, 2023 · 1 comment

Comments

@sherabgashon
Copy link

Is there any way to incorporate FGA, FGM, FTA and FTM stats into the league.player_stats method for NBA fantasy leagues?

I am currently trying to aggregate team stats based on team's current rosters. Only FG% and FT% are displayed. Averaging these out would lead to inaccurate team values for team FG% and FT%.

I would like to know if it is possible to retrieve these values, or if there is a workaround to this.

Thank you!

@Doddy-codes
Copy link

Doddy-codes commented Jan 6, 2024

Bump, this would be very helpful.

@sherabgashon If you are still looking this can be retrieved via the nba_api Python package (https://github.com/swar/nba_api):

from nba_api.stats.endpoints import leaguegamelog
stats = leaguegamelog.LeagueGameLog(player_or_team_abbreviation='P')
player_stats_df = stats.get_data_frames()[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants