(name: str)
| 50 | |
| 51 | |
| 52 | def _canonicalize_columns(df: pl.DataFrame) -> pl.DataFrame: |
| 53 | rename_map: dict[str, str] = {} |
| 54 | # An exact canonical column takes precedence even if its alias appears first. |
| 55 | # Otherwise both columns would be renamed to the same target. |
| 56 | used_targets = set(df.columns).intersection(CANONICAL_OHLCV_COLUMNS) |
no outgoing calls
no test coverage detected