MCPcopy Create free account
hub / github.com/Open-Quant/openquant / clean_ohlcv_columns

Function clean_ohlcv_columns

crates/openquant/src/data_processing.rs:379–387  ·  view source on GitHub ↗
(
    columns: &OhlcvColumns,
    keep_last: bool,
)

Source from the content-addressed store, hash-verified

377}
378
379pub fn clean_ohlcv_columns(
380 columns: &OhlcvColumns,
381 keep_last: bool,
382) -> Result<(OhlcvColumns, DataQualityReport), String> {
383 let df = to_polars_df(columns)?;
384 let (clean_df, report) = clean_ohlcv_df(&df, keep_last)?;
385 let clean_cols = df_to_ohlcv_columns(&clean_df)?;
386 Ok((clean_cols, report))
387}
388
389pub fn align_calendar_columns(
390 columns: &OhlcvColumns,

Callers 2

clean_ohlcv_rowsFunction · 0.85
data_clean_ohlcvFunction · 0.85

Calls 3

to_polars_dfFunction · 0.85
clean_ohlcv_dfFunction · 0.85
df_to_ohlcv_columnsFunction · 0.85

Tested by

no test coverage detected