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 drive sequence number #420

Merged
merged 5 commits into from
Aug 30, 2023
Merged

Fix drive sequence number #420

merged 5 commits into from
Aug 30, 2023

Conversation

mrcaseb
Copy link
Member

@mrcaseb mrcaseb commented Aug 30, 2023

fixes #309

We have this issue #309 with 2013 postseason games where the driveSequenceNumber in the plays df is NA for all plays. That prevents drive information from being joined.
In this case, we compute our own driveSequenceNumber by incrementing a counter depending on the value of driveTimeOfPossession. driveTimeOfPossession will be a constant value during a drive so this should actually be accurate

@mrcaseb mrcaseb marked this pull request as draft August 30, 2023 11:28
@github-actions
Copy link

github-actions bot commented Aug 30, 2023

@mrcaseb mrcaseb marked this pull request as ready for review August 30, 2023 12:50
@mrcaseb mrcaseb requested a review from guga31bb August 30, 2023 12:50
@guga31bb
Copy link
Member

hooray fixed a 2 year old issue

@mrcaseb mrcaseb enabled auto-merge August 30, 2023 13:01
@mrcaseb
Copy link
Member Author

mrcaseb commented Aug 30, 2023

hooray fixed a 2 year old issue

I was actually about to add the wontfix badge and then realized I could fix it

@mrcaseb mrcaseb merged commit 597c668 into master Aug 30, 2023
6 checks passed
@mrcaseb mrcaseb deleted the fix-driveSequenceNumber branch August 30, 2023 13:24
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

Successfully merging this pull request may close these issues.

All drive_* variables broken for 2013 postseason (except 2013_19_NO_SEA)
2 participants