timeseries_utils
timeseries_utils
¶
Shared helpers for deterministic time-series row ordering.
Functions:
| Name | Description |
|---|---|
unused_column_name |
Return the preferred column name or a deterministic suffixed variant. |
stable_sort_within_groups |
Sort groups deterministically while retaining source position as the final tie-breaker. |
unused_column_name(preferred, columns)
¶
Return the preferred column name or a deterministic suffixed variant.
Source code in src/nemo_safe_synthesizer/data_processing/timeseries_utils.py
stable_sort_within_groups(data, group_column, order_column, *, normalized_order=None)
¶
Sort groups deterministically while retaining source position as the final tie-breaker.