(rows: &[OhlcvRow], keep_last: bool)
| 540 | } |
| 541 | |
| 542 | pub fn clean_ohlcv_rows(rows: &[OhlcvRow], keep_last: bool) -> (Vec<OhlcvRow>, DataQualityReport) { |
| 543 | let cols = rows_to_columns(rows); |
| 544 | let (clean_cols, report) = clean_ohlcv_columns(&cols, keep_last).expect("validated rows"); |
| 545 | (columns_to_rows(&clean_cols), report) |
| 546 | } |
| 547 | |
| 548 | pub fn quality_report( |
| 549 | rows: &[OhlcvRow], |