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

possession.get_team_ids returns a list of three ids #25

Open
matteosox opened this issue Mar 10, 2021 · 1 comment
Open

possession.get_team_ids returns a list of three ids #25

matteosox opened this issue Mar 10, 2021 · 1 comment

Comments

@matteosox
Copy link

matteosox commented Mar 10, 2021

Code to reproduce:

from pbpstats.client import Client


settings = {"Possessions": {"source": "web", "data_provider": "stats_nba"}}
game_id = '0021900973'
possession_ind = 191

client = Client(settings)
game = client.Game(game_id)
possessions = game.possessions
possession = possessions.items[possession_ind]
team_ids = possession.get_team_ids()
print(team_ids)

[1610612742, 590, 1610612743]

Python 3.7.9
pbpstats==1.2.0
requests==2.25.1

@dblackrun
Copy link
Owner

Edit the pbp file and remove this event:
["0021900973", 592, 18, 1, 4, "10:23 PM", "1:05", null, null, null, "97 - 111", "14", 0, 590, null, null, null, null, null, 0, 0, null, null, null, null, null, 1, 0, null, null, null, null, null, 0]

It's a replay review event.

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