extract_fare_class_mix

passengersim.summaries.fare_class_mix.extract_fare_class_mix(sim: Simulation) pd.DataFrame[source]

Compute a fare class distribution report.

This report is a dataframe, with index values giving the carrier and booking class, and columns giving the number sold (bookings) and revenue observed during the simulation (excluding any burn period). The sales are counts of passengers not legs, so a passenger on a connecting itinerary only counts once.