Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -188,7 +188,7 @@ def plot_model_results(results_df, average_value, title, model_type):
|
|
| 188 |
raise
|
| 189 |
|
| 190 |
|
| 191 |
-
def
|
| 192 |
"""
|
| 193 |
Plot model results with specific orders and colors for Trust and NPS models.
|
| 194 |
Args:
|
|
@@ -775,7 +775,7 @@ def analyze_excel_single(file_path):
|
|
| 775 |
results_df_nps = pd.read_csv(csv_output_path_nps)
|
| 776 |
results_df_nps["Importance_percent"] = results_df_nps["Importance"] * 100
|
| 777 |
average_value_nps = results_df_nps["Importance_percent"].mean()
|
| 778 |
-
img_nps =
|
| 779 |
results_df_nps,
|
| 780 |
average_value_nps,
|
| 781 |
f"NPS Drivers: {file_name}",
|
|
|
|
| 188 |
raise
|
| 189 |
|
| 190 |
|
| 191 |
+
def plot_model(results_df, average_value, title, model_type):
|
| 192 |
"""
|
| 193 |
Plot model results with specific orders and colors for Trust and NPS models.
|
| 194 |
Args:
|
|
|
|
| 775 |
results_df_nps = pd.read_csv(csv_output_path_nps)
|
| 776 |
results_df_nps["Importance_percent"] = results_df_nps["Importance"] * 100
|
| 777 |
average_value_nps = results_df_nps["Importance_percent"].mean()
|
| 778 |
+
img_nps = plot_model(
|
| 779 |
results_df_nps,
|
| 780 |
average_value_nps,
|
| 781 |
f"NPS Drivers: {file_name}",
|