numeraire_dataset.to_timeseries_view#
- numeraire_dataset.to_timeseries_view(df: pd.DataFrame, *, ret_col: str, feature_cols: list[str] | None = None, date_col: str = 'date', asset: str = 'mkt', horizon: int = 1) TimeSeriesView[source]#
A tidy
(date, ret, features…)frame → single-asset numeraireTimeSeriesView.feature_cols=Noneuses every column exceptdate_colandret_col. Rows with any NaN in the selected columns are dropped and the index is sorted. Requires thenumeraireextra (imported lazily so the frame loaders above do not depend on numeraire).