Commit
·
50faa2d
1
Parent(s):
6e8d51f
Fix missing return
Browse files- app.py +3 -1
- tabs/tool_accuracy.py +1 -1
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def get_last_one_month_data():
|
|
| 86 |
|
| 87 |
def get_all_data():
|
| 88 |
"""
|
| 89 |
-
Get all data from the tools.parquet and all_trades_profitability.parquet files
|
| 90 |
"""
|
| 91 |
logger.info("Getting all data")
|
| 92 |
con = duckdb.connect(":memory:")
|
|
@@ -130,6 +130,8 @@ def prepare_data():
|
|
| 130 |
trades_df = prepare_trades(trades_df)
|
| 131 |
|
| 132 |
tools_accuracy_info = compute_weighted_accuracy(tools_accuracy_info)
|
|
|
|
|
|
|
| 133 |
|
| 134 |
return tools_df, trades_df, tools_accuracy_info
|
| 135 |
|
|
|
|
| 86 |
|
| 87 |
def get_all_data():
|
| 88 |
"""
|
| 89 |
+
Get all data from the tools.parquet, tools_accuracy and all_trades_profitability.parquet files
|
| 90 |
"""
|
| 91 |
logger.info("Getting all data")
|
| 92 |
con = duckdb.connect(":memory:")
|
|
|
|
| 130 |
trades_df = prepare_trades(trades_df)
|
| 131 |
|
| 132 |
tools_accuracy_info = compute_weighted_accuracy(tools_accuracy_info)
|
| 133 |
+
print("weighted accuracy info")
|
| 134 |
+
print(tools_accuracy_info.head())
|
| 135 |
|
| 136 |
return tools_df, trades_df, tools_accuracy_info
|
| 137 |
|
tabs/tool_accuracy.py
CHANGED
|
@@ -48,4 +48,4 @@ def plot_tools_weighted_accuracy_graph(tools_accuracy_info: pd.DataFrame):
|
|
| 48 |
dodge=False,
|
| 49 |
)
|
| 50 |
# Display the plot using gr.Plot
|
| 51 |
-
gr.Plot(value=plot.get_figure())
|
|
|
|
| 48 |
dodge=False,
|
| 49 |
)
|
| 50 |
# Display the plot using gr.Plot
|
| 51 |
+
return gr.Plot(value=plot.get_figure())
|