(
self,
timestamps: Sequence[str],
signal: Sequence[float],
side: Sequence[float] | None = None,
symbol: str | None = None,
)
| 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 |