## input_shifts.subtract_unavailability()


Subtract one event's vehicle counts from a schedule.


Usage

``` python
input_shifts.subtract_unavailability(
    schedule,
    availability,
    event,
)
```


## Parameters


`schedule: pd.DataFrame`  
Vehicle schedule contain `time` and `vehicle` columns.

`availability: pd.DataFrame`  
Availability schedule containing time and the specified event column.

`event: str`  
Column to subtract, such as "unavailable" or "rest_break".


## Returns


`pd.DataFrame`  
Adjusted schedule with time and vehicle columns. Includes timestamps from both inputs, with values carried forward between changes.
