fig_carrier_total_bookings

passengersim.contrast.fig_carrier_total_bookings(summaries, raw_df=False, orient: 'h' | 'v' = 'h', ratio: str | bool = 'all', *, width: int = 500, also_df: bool = False)[source]

Generate a figure contrasting carrier total bookings for one or more runs.

Parameters:
summaries : dict[str, SimulationTables]

raw_df : bool, default False

orient : {'h', 'v'}, default 'h'

ratio : bool or str, default "all"

Add tooltip(s) giving the percentage change of each carrier’s bookings to the bookings of the same carrier in the other summaries. Can be the key giving a specific summary to compare against, or ‘all’ to compare against all other summaries.

Returns:

alt.Chart or pd.DataFrame