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

Function data_clean_ohlcv_df

crates/pyopenquant/src/data.rs:126–136  ·  view source on GitHub ↗
(
    py: Python<'_>,
    pydf: PyDataFrame,
    dedupe_keep_last: bool,
)

Source from the content-addressed store, hash-verified

124 ))
125}
126
127#[pyfunction(name = "clean_ohlcv_df")]
128fn data_clean_ohlcv_df(
129 py: Python<'_>,
130 pydf: PyDataFrame,
131 dedupe_keep_last: bool,
132) -> PyResult<(PyDataFrame, PyObject)> {
133 let df: DataFrame = pydf.into();
134 let (out_df, report) =
135 openquant::data_processing::clean_ohlcv_df(&df, dedupe_keep_last).map_err(to_py_err)?;
136 let out_report = report_to_pydict(py, report)?;
137 Ok((PyDataFrame(out_df), out_report))
138}
139

Callers

nothing calls this directly

Calls 2

clean_ohlcv_dfFunction · 0.85
report_to_pydictFunction · 0.85

Tested by

no test coverage detected