Add workaround to drop orderflow columns before sending to plotting

This commit is contained in:
Matthias 2024-07-10 20:21:32 +02:00
parent e5f6ce9724
commit 9975788f57

View File

@ -1318,7 +1318,9 @@ class RPC:
dataframe[date_column] = dataframe[date_column].astype(object).replace({NaT: None})
# TODO: Temporary workaround for orderflow: drop orderflow columns
dataframe = dataframe.drop(["orderflow", "trades", "imbalances"], axis=1, errors="ignore")
dataframe = dataframe.drop(
["orderflow", "trades", "imbalances"], axis=1, errors="ignore"
)
dataframe = dataframe.replace({inf: None, -inf: None, NAN: None})
res = {