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

Fix issue pulling weight of older NCAAF players #153

Merged
merged 1 commit into from
Aug 2, 2019

Conversation

roclark
Copy link
Owner

@roclark roclark commented Aug 2, 2019

While attempting to pull player information for players from several seasons ago (tested on 2000 and earlier), sports-reference.com doesn't always contain the player's weight. In this case, their weight will still be set as None, causing an AttributeError to be thrown while attempting to replace the contents of what it expects to be a string. If this situation occurs, the weight should stay as None for the end-user to decide how they want to handle the omission.

Fixes #141

Signed-Off-By: Robert Clark robdclark@outlook.com

@roclark roclark added the bug Something isn't working label Aug 2, 2019
@roclark roclark added this to the Release 0.4.4 milestone Aug 2, 2019
@roclark roclark self-assigned this Aug 2, 2019
While attempting to pull player information for players from several
seasons ago (tested on 2000 and earlier), sports-reference.com doesn't
always contain the player's weight. In this case, their weight will
still be set as None, causing an AttributeError to be thrown while
attempting to replace the contents of what it expects to be a string.
If this situation occurs, the weight should stay as None for the
end-user to decide how they want to handle the omission.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark force-pushed the patch/fix-legacy-ncaaf-player-weight branch from 9d4b3dd to 923d858 Compare August 2, 2019 19:44
@roclark roclark merged commit 5cb7d52 into master Aug 2, 2019
@roclark roclark deleted the patch/fix-legacy-ncaaf-player-weight branch August 2, 2019 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NCAAF Player dataframes fail for players without a weight listed in sportsreference
1 participant