quantlab.model.collected_panel.sorted_panel#

quantlab.model.collected_panel.sorted_panel(data)[source]#

Return data with both axes increasing, sorting only when they are not.

Examples

>>> sorted_panel(panel.isel(symbol=[2, 0, 1])).symbol.values.tolist()
['S0', 'S1', 'S2']