fig_carrier_yields

passengersim.contrast.fig_carrier_yields(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 yields 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 yield to the yield 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