fig_carrier_revenues¶
-
passengersim.contrast.fig_carrier_revenues(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 revenues for one or more runs.
- Parameters:
- summaries : dict[str, SimulationTables]¶
- raw_df : bool, default False¶
Return only the raw data used to generate the figure.
- orient : {'h', 'v'}, default 'h'¶
- ratio : bool or str, default True¶
Add tooltip(s) giving the percentage change of each carrier’s revenue to the revenue 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.
- also_df : bool, default False¶
Return the raw data used to generate the figure in addition to the figure itself.
- Returns:
alt.Chart or pd.DataFrame or tuple[alt.Chart, pd.DataFrame]