fig_carrier_load_factors¶
-
passengersim.contrast.fig_carrier_load_factors(summaries: dict[str, SimulationTables], raw_df: bool =
False, load_measure: 'sys_lf' | 'avg_leg_lf' ='sys_lf', orient: 'h' | 'v' ='h', ratio: str | bool ='all', *, width: int =500, also_df: bool =False, title: str | None ='_default_')[source]¶ Generate a figure contrasting carrier load factors for one or more runs.
- Parameters:
- summaries : dict[str, SimulationTables]¶
- raw_df : bool, default False¶
- load_measure : {'sys_lf', 'avg_leg_lf'}, default 'sys_lf'¶
- orient : {'h', 'v'}, default 'h'¶
- ratio : bool or str, default "all"¶
Add tooltip(s) giving the percentage change of each carrier’s load factor to the load factor 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.
- title : str, optional¶
Title of the figure. Set to None for no title, otherwise a default title is used.
- Returns:
alt.Chart or pd.DataFrame