cyberosa
commited on
Commit
·
240e297
1
Parent(s):
2da8760
removed modification of an input dataframe
Browse files- tabs/error.py +2 -1
tabs/error.py
CHANGED
@@ -60,7 +60,8 @@ def plot_error_data_by_market(error_all_df: pd.DataFrame) -> gr.Plot:
|
|
60 |
return gr.Plot(value=fig)
|
61 |
|
62 |
|
63 |
-
def plot_tool_error_data_by_market(
|
|
|
64 |
error_tool = error_df[error_df["tool"] == tool]
|
65 |
error_tool.columns = error_tool.columns.astype(str)
|
66 |
error_tool["error_perc"] = error_tool["error_perc"].apply(lambda x: round(x, 4))
|
|
|
60 |
return gr.Plot(value=fig)
|
61 |
|
62 |
|
63 |
+
def plot_tool_error_data_by_market(error_raw: pd.DataFrame, tool: str) -> gr.Plot:
|
64 |
+
error_df = error_raw.copy(deep=True)
|
65 |
error_tool = error_df[error_df["tool"] == tool]
|
66 |
error_tool.columns = error_tool.columns.astype(str)
|
67 |
error_tool["error_perc"] = error_tool["error_perc"].apply(lambda x: round(x, 4))
|