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

Function data_quality_report

python/openquant/data.py:214–221  ·  view source on GitHub ↗
(df: pl.DataFrame)

Source from the content-addressed store, hash-verified

212
213
214def data_quality_report(df: pl.DataFrame) -> dict[str, Any]:
215 sorted_df = (
216 _prepare_ohlcv_lf(df)
217 .with_columns(pl.col("ts").dt.timestamp(time_unit="us").alias("ts_us"))
218 .sort(["symbol", "ts_us"])
219 .collect()
220 )
221 return _build_quality_report(sorted_df, rows_removed_by_deduplication=0)
222
223
224def load_ohlcv(

Callers

nothing calls this directly

Calls 2

_prepare_ohlcv_lfFunction · 0.85
_build_quality_reportFunction · 0.85

Tested by

no test coverage detected