mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-21 11:51:05 +00:00
chore: unpack instead of list concat
This commit is contained in:
@@ -165,7 +165,7 @@ def generate_trades_history(n_rows, start_date: datetime | None = None, days=5):
|
||||
)
|
||||
df["date"] = pd.to_datetime(df["timestamp"], unit="ms", utc=True)
|
||||
df = df.sort_values("timestamp").reset_index(drop=True)
|
||||
assert list(df.columns) == constants.DEFAULT_TRADES_COLUMNS + ["date"]
|
||||
assert list(df.columns) == [*constants.DEFAULT_TRADES_COLUMNS, "date"]
|
||||
return df
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user