mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
Compare commits
3 Commits
1bd60c2afb
...
fix/tz-nai
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dccd0dcb9e | ||
|
|
a4c82a95a0 | ||
|
|
174d85f995 |
@@ -301,8 +301,8 @@ class FreqaiDataDrawer:
|
||||
hist_preds = self.historic_predictions[pair].copy()
|
||||
|
||||
# ensure both dataframes have the same date format so they can be merged
|
||||
new_pred["date_pred"] = pd.to_datetime(new_pred["date_pred"])
|
||||
hist_preds["date_pred"] = pd.to_datetime(hist_preds["date_pred"])
|
||||
new_pred["date_pred"] = pd.to_datetime(new_pred["date_pred"]).dt.tz_localize(None)
|
||||
hist_preds["date_pred"] = pd.to_datetime(hist_preds["date_pred"]).dt.tz_localize(None)
|
||||
|
||||
# find the closest common date between new_pred and historic predictions
|
||||
# and cut off the new_pred dataframe at that date
|
||||
|
||||
Reference in New Issue
Block a user