build_arrival_config()

Determine arrival parameters and create config dict.

Usage

Source

build_arrival_config(
    arrivals,
    hourly=False,
)

Parameters

arrivals: pd.DataFrame

Count of arrivals by weekday, response category and outcome. Must also contain incident hour when hourly=True.

hourly: bool = False
Use weekday-hour intervals instead of just weekday intervals.

Returns

dict
Dictionary containing the configuration dictionary, as well as other tables and outputs from processing, that can be used to help check assumptions in the arrival modelling.