Update src/input_analysis/Standarddeviation.py
Browse files
src/input_analysis/Standarddeviation.py
CHANGED
|
@@ -2,8 +2,8 @@ import pandas as pd
|
|
| 2 |
import numpy as np
|
| 3 |
|
| 4 |
# Load Excel files
|
| 5 |
-
product_data = pd.read_excel("
|
| 6 |
-
competitor_data = pd.read_excel("
|
| 7 |
|
| 8 |
# Function to filter criteria based on available columns
|
| 9 |
def filter_existing_criteria(data, criteria):
|
|
@@ -169,14 +169,14 @@ top_3_df = pd.DataFrame(
|
|
| 169 |
)
|
| 170 |
|
| 171 |
# Save results to Excel
|
| 172 |
-
top_3_df.to_excel("
|
| 173 |
|
| 174 |
# Print the results
|
| 175 |
print("\nTop 3 SD Results DataFrame:")
|
| 176 |
print(top_3_df)
|
| 177 |
import os
|
| 178 |
|
| 179 |
-
output_folder = "data/output_generated_file/
|
| 180 |
output_file_path = os.path.join(output_folder, "top_3_sd_results.xlsx")
|
| 181 |
os.makedirs(output_folder, exist_ok=True)
|
| 182 |
# Save results to the specified folder
|
|
|
|
| 2 |
import numpy as np
|
| 3 |
|
| 4 |
# Load Excel files
|
| 5 |
+
product_data = pd.read_excel("Output_File/excel/product_analysis.xlsx")
|
| 6 |
+
competitor_data = pd.read_excel("Output_File/excel/competitor_analysis.xlsx")
|
| 7 |
|
| 8 |
# Function to filter criteria based on available columns
|
| 9 |
def filter_existing_criteria(data, criteria):
|
|
|
|
| 169 |
)
|
| 170 |
|
| 171 |
# Save results to Excel
|
| 172 |
+
top_3_df.to_excel("Output_File/excel/top_3_sd_results.xlsx", index=False)
|
| 173 |
|
| 174 |
# Print the results
|
| 175 |
print("\nTop 3 SD Results DataFrame:")
|
| 176 |
print(top_3_df)
|
| 177 |
import os
|
| 178 |
|
| 179 |
+
output_folder = "data/output_generated_file/Output_File/excel"
|
| 180 |
output_file_path = os.path.join(output_folder, "top_3_sd_results.xlsx")
|
| 181 |
os.makedirs(output_folder, exist_ok=True)
|
| 182 |
# Save results to the specified folder
|