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

Custom headway assessment #36

Open
kuanb opened this issue Sep 21, 2017 · 0 comments
Open

Custom headway assessment #36

kuanb opened this issue Sep 21, 2017 · 0 comments

Comments

@kuanb
Copy link
Member

kuanb commented Sep 21, 2017

Idea:

Thread through a way to perform custom summary stat calculations other than those generated by Pandas' describe() method in the headways computation step of UA.

This is currently in headways.py in the gtfs dir.

Proposal:
After the results[unique_stop_route] = pd.Series(adjusted_time_diff).describe() is applied on a grouped set, go ahead and run a custom method (which could just be selecting, say, the mean result value).

This will return all the describe columns as well as a new column which is selected_result or whatever. So, downstream _add_headway_impedance would not need a parameter for which headway to use, it could simply opt to rely on selected_result column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants