Merge pull request #6726 from froggleston/bt_concat

Move df append to pd concat
This commit is contained in:
Matthias 2022-04-25 16:03:27 +02:00 committed by GitHub
commit 246a336f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
freqtrade/optimize/backtesting.py Normal file → Executable file
View File

@ -9,6 +9,7 @@ from copy import deepcopy
from datetime import datetime, timedelta, timezone
from typing import Any, Dict, List, Optional, Tuple
import pandas as pd
from numpy import nan
from pandas import DataFrame
@ -1093,7 +1094,7 @@ class Backtesting:
for t, v in pairresults.open_date.items():
allinds = pairdf.loc[(pairdf['date'] < v)]
signal_inds = allinds.iloc[[-1]]
signal_candles_only_df = signal_candles_only_df.append(signal_inds)
signal_candles_only_df = pd.concat([signal_candles_only_df, signal_inds])
signal_candles_only[pair] = signal_candles_only_df