detail_table¶
-
passengersim.callbacks.booking_detail.detail_table(data: CallbackData | SimulationTables, name: str, legacy_suffix: str =
'') pd.DataFrame[source]¶ Get a per-sample leg detail table, from a tracer or from legacy daily rows.
- Parameters:
- data : CallbackData or SimulationTables¶
Callback data, or a summary holding it.
- name : str¶
The tracer’s result name, such as
"leg_booking_detail".- legacy_suffix : str¶
The suffix of legacy
dailykeys, such as"sold"forleg-101-sold, used for results saved before the tracer existed.
- Returns:
pd.DataFrame – Indexed by
(trial, sample, days_prior), one column per leg.- Raises:
KeyError – If neither the tracer’s table nor legacy daily rows are present.