cyberosa
commited on
Commit
·
8e882f5
1
Parent(s):
551b52f
trying to fix issue with the graphs
Browse files
app.py
CHANGED
@@ -94,23 +94,21 @@ def load_all_data():
|
|
94 |
df1 = pd.read_parquet(errors_df)
|
95 |
|
96 |
# all trades profitability
|
97 |
-
|
98 |
-
gz_file_path = hf_hub_download(
|
99 |
repo_id="valory/Olas-predict-dataset",
|
100 |
filename="all_trades_profitability.parquet.gz",
|
101 |
repo_type="dataset",
|
102 |
)
|
103 |
|
104 |
-
|
105 |
-
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
with open(parquet_file_path, "wb") as f_out:
|
110 |
shutil.copyfileobj(f_in, f_out)
|
111 |
|
112 |
-
|
113 |
-
|
114 |
# os.remove(parquet_file_path)
|
115 |
|
116 |
# tools_accuracy
|
|
|
94 |
df1 = pd.read_parquet(errors_df)
|
95 |
|
96 |
# all trades profitability
|
97 |
+
gz_file_path_trades = hf_hub_download(
|
|
|
98 |
repo_id="valory/Olas-predict-dataset",
|
99 |
filename="all_trades_profitability.parquet.gz",
|
100 |
repo_type="dataset",
|
101 |
)
|
102 |
|
103 |
+
parquet_file_path_trades = gz_file_path_trades.replace(".gz", "")
|
104 |
+
parquet_file_path_trades = parquet_file_path_trades.replace("all", "")
|
105 |
|
106 |
+
with gzip.open(gz_file_path_trades, "rb") as f_in:
|
107 |
+
with open(parquet_file_path_trades, "wb") as f_out:
|
|
|
108 |
shutil.copyfileobj(f_in, f_out)
|
109 |
|
110 |
+
df2 = pd.read_parquet(parquet_file_path_trades)
|
111 |
+
|
112 |
# os.remove(parquet_file_path)
|
113 |
|
114 |
# tools_accuracy
|