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

Function require_ohlcv_columns

crates/openquant/src/data_processing.rs:66–71  ·  view source on GitHub ↗
(df: &DataFrame)

Source from the content-addressed store, hash-verified

64}
65
66fn require_ohlcv_columns(df: &DataFrame) -> Result<(), String> {
67 for name in ["symbol", "ts_us", "open", "high", "low", "close", "volume", "adj_close"] {
68 df.column(name).map_err(|e| format!("missing required column '{name}': {e}"))?;
69 }
70 Ok(())
71}
72
73fn sort_ohlcv_df(df: &DataFrame) -> Result<DataFrame, String> {
74 df.sort(

Callers 3

quality_report_dfFunction · 0.85
clean_ohlcv_dfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected