Skip to main content

input_shifts.create_weekly_schedule()

Convert shifts into a repeating weekly vehicle count schedule.

Usage

Source

input_shifts.create_weekly_schedule(shifts)

Parameters

shifts: pd.DataFrame
Shifts dataframe containing shift_start and shift_end columns, 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 time and vehicle columns. Includes Monday 00:00 and subsequent times when the vehicle count changes.