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

Function _gap_expr

python/openquant/data.py:107–112  ·  view source on GitHub ↗
(symbol_expr: pl.Expr, ts_us_expr: pl.Expr, threshold_seconds: int = 24 * 3600)

Source from the content-addressed store, hash-verified

105 """The canonical columns, parsed and cast, before rows with nulls are dropped."""
106 frame = _canonicalize_columns(df)
107 _validate_required_columns(frame)
108
109 lf = frame.lazy().with_columns(
110 _parse_ts(pl.col("ts").cast(pl.Utf8)),
111 pl.col("symbol").cast(pl.Utf8),
112 pl.col("open").cast(pl.Float64),
113 pl.col("high").cast(pl.Float64),
114 pl.col("low").cast(pl.Float64),
115 pl.col("close").cast(pl.Float64),

Callers 1

_build_quality_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected