You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
sablanchard
changed the title
Custom headaway assessment
Custom headway assessment
Sep 22, 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 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: