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

Method append

python/openquant/adapters.py:137–144  ·  view source on GitHub ↗
(
        self,
        timestamps: Sequence[str],
        signal: Sequence[float],
        side: Sequence[float] | None = None,
        symbol: str | None = None,
    )

Source from the content-addressed store, hash-verified

135 bar_index : Sequence[int] or None, default None
136 Index for each row; defaults to `0..len(ind_mat) - 1`.
137 label_names : Sequence[str] or None, default None
138 Unique column names for the labels, excluding `bar_index`; defaults to
139 `label_0`, `label_1`, ...
140
141 Returns
142 -------
143 polars.DataFrame
144 Column `bar_index` followed by one integer column per label. An empty `ind_mat`
145 gives a frame with only an empty `bar_index` column.
146
147 Raises

Callers 15

execute_notebookFunction · 0.80
_datasetFunction · 0.80
_load_fixture_pricesFunction · 0.80
_build_by_symbolFunction · 0.80
run_flywheel_gridFunction · 0.80
_build_intervalsFunction · 0.80
_purged_kfold_splitsFunction · 0.80
_importance_tableFunction · 0.80
mdi_importanceFunction · 0.80
_score_with_perm_groupsFunction · 0.80

Calls 1

to_polars_signal_frameFunction · 0.85

Tested by 3

_datasetFunction · 0.64
_load_fixture_pricesFunction · 0.64