q.label.prune_labels iteratively removes classes below a minimum sample fraction and returns an audit report. Fractions are recomputed after each removal, and min_classes prevents the target from silently collapsing to one class.
Tied rare classes are removed in first-observed order. The function preserves the original event index for all retained labels.
The returned Series is filtered rather than recoded. Use its index to align all event-level features, endpoints, and weights to the same surviving sample.