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

Function test_to_pandas_bridge

python/tests/test_adapters_viz.py:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 openquant.adapters.to_polars_signal_frame(["2024-01-01 09:30:00"], [0.1, 0.2])
101 with pytest.raises(ValueError):
102 openquant.adapters.to_polars_indicator_matrix([[1, 0], [1]], bar_index=[0, 1])
103
104 with pytest.raises(ValueError):
105 openquant.viz.prepare_frontier_payload([0.1], [0.1, 0.2])
106
107
108def test_to_pandas_bridge():
109 df = openquant.adapters.to_polars_weights_frame(["A"], [1.0])
110 try:
111 pdf = openquant.adapters.to_pandas(df)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected