input_shifts.create_weekly_schedule()
Convert shifts into a repeating weekly vehicle count schedule.
Usage
input_shifts.create_weekly_schedule(shifts)Parameters
shifts: pd.DataFrame-
Shifts dataframe containing
shift_startandshift_endcolumns, measured in minutes from Monday 00:00. End times should be unwrapped, so Sunday shifts may end beyond WEEK_MINUTES.
Returns
pd.DataFrame-
Schedule with
timeandvehiclecolumns. Includes Monday 00:00 and subsequent times when the vehicle count changes.