fix(DataLoader): sort the dataframe when fetching data (#239)

This commit is contained in:
Mark Aron Szulyovszky
2022-03-15 14:12:05 +01:00
committed by GitHub
parent 95b0499430
commit 4fc1070f45
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ def __load_data(
]
X = target_asset_df + asset_dfs + exogenous_dfs
X = pd.concat([df.sort_index().reindex(X[0].index) for df in X], axis=1).fillna(0.0)
X = pd.concat([df.reindex(X[0].index) for df in X], axis=1).fillna(0.0)
X.index = pd.DatetimeIndex(X.index)