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]: TeamDashboardByGeneralSplits base data is not correct. Seems to be pulling single players stats possibly? #448

Open
WylieDituri opened this issue Jun 13, 2024 · 0 comments
Labels
bug Something isn't working triage Researching into a possible bug

Comments

@WylieDituri
Copy link

NBA API Version

v1.4.1

Issue

TeamDashboardByGeneralSplits seems to be pulling odd data, or filling in data in the wrong fields. IE PPG = Point differential, which should not be.

Code

import pandas as pd
import requests
from nba_api.stats.endpoints import scoreboardv2
import datetime
from nba_api.stats.endpoints import teamdashboardbygeneralsplits
dallas = '1610612742'
boston = '1610612738'
sb = scoreboardv2.ScoreboardV2(league_id="00", game_date="2024-06-14", day_offset="0").game_header.get_dict()
scoreframe = pd.DataFrame(sb['data'], columns=sb['headers'])
stats= teamdashboardbygeneralsplits.TeamDashboardByGeneralSplits(measure_type_detailed_defense='Base', per_mode_detailed='PerGame', plus_minus='Y', season_type_all_star='Playoffs', team_id=boston).get_dict()
stats

-check stats output

@WylieDituri WylieDituri added bug Something isn't working triage Researching into a possible bug labels Jun 13, 2024
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