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

Player names sometimes mis-assigned in get_box_scores() #94

Open
dgroshan18 opened this issue Nov 13, 2022 · 0 comments
Open

Player names sometimes mis-assigned in get_box_scores() #94

dgroshan18 opened this issue Nov 13, 2022 · 0 comments

Comments

@dgroshan18
Copy link

I don't understand what is happening here but it looks like a defect to me; figured I'd share this example in case anyone smarter wants to check it out...

#EXAMPLE SCRIPT
from basketball_reference_scraper.box_scores import get_box_scores
z = get_box_scores('2022-11-09','CHI','NOP', period='GAME', stat_type='BASIC')
print(z)

Note that DeMar Derozan is returned twice, with two distinct sets of stats:
image

Check basketball-reference.com, it looks like the second line should actually be assigned to Goran Dragic (note MP,FGA,FG):
image

This doesn't appear to be a one-off, seems like a recurring issue specific to certain players. Here are more player/gamedate examples if curious:

image

I also took a quick look at BOS-PHI from 10/18/2022 because Seth Curry returned two stat lines for PHI (he's not even on that team this season)... neither one is truly his, rather they should belong to P.J. Tucker and De'Anthony Melton. Very strange.

image
image

If anyone does take a look I'd be curious to hear thoughts. Thanks!

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

1 participant