fig_carrier_local_share

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

Generate a figure contrasting carrier local shares 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 True

Add tooltip(s) giving the percentage change of each carrier’s local share to the local share 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