-
Notifications
You must be signed in to change notification settings - Fork 57
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
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 thegtfs
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, themean
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 onselected_result
column.The text was updated successfully, but these errors were encountered: