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

De-aggregate subway ridership data into daily values #24

Open
idreyn opened this issue Jun 14, 2023 · 0 comments
Open

De-aggregate subway ridership data into daily values #24

idreyn opened this issue Jun 14, 2023 · 0 comments

Comments

@idreyn
Copy link
Contributor

idreyn commented Jun 14, 2023

Right now we aggregate subway ridership value into weekday means for a given week:

final = final.groupby(["year", "week", "route_or_line"])["validations"].mean().round().reset_index()

This is because we copied this code from the Covid Recovery Dash, which did this to provide a direct comparison to bus ridership data, which is only available weekly. But elsewhere, we can store and display daily subway ridership data.

We probably want to preserve the weekly aggregates, so this task will involve creating a second table to hold the daily (or weekly) ridership.

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