Fare Class Mix¶
Two runs can sell a similar number of tickets but sell them in very different fare classes. These charts help you see whether bookings are moving toward higher or lower classes, either across the network or in one market.
You can read about the underlying data and how to collect it in Fare Class Mix.
Bookings by Fare Class¶
Each bar shows average bookings for a carrier, with the fare classes stacked within the bar. Comparing the sizes of those pieces helps you see which classes account for the bookings.
You can group bookings by "fare_class" (the default), "booking_class", or "brand" using
group_by. This also determines how the data is grouped when you request the underlying values. The
comparison uses the same grouping for each run, so you can see which parts of the mix changed.
Use label_threshold to keep labels off the smallest portions of each bar. Its default is 0.06,
which sets the cutoff at 6% of the largest carrier’s total bookings in the chart.
For one run, call fig_fare_class_mix
on a single SimulationTables object:
summary.fig_fare_class_mix()
To compare runs, use fig_fare_class_mix on a
Contrast object:
contrast.fig_fare_class_mix()
Fare Class Mix by Market¶
If you want to understand a particular market, choose its origin and destination. You will get the same kind of fare-class view, limited to passengers traveling between those airports.
Pass the airport codes as orig and dest. This chart uses the pathclasses table, and the
selected market must be present in each result you want to compare. As above, label_threshold
controls whether small portions of the bars receive labels.
For one run, call
fig_od_fare_class_mix on a single
SimulationTables object:
summary.fig_od_fare_class_mix(orig="KEF", dest="MAD")
To compare runs, use fig_od_fare_class_mix on a
Contrast object:
contrast.fig_od_fare_class_mix(orig="KEF", dest="MAD")