Update app.py
Browse files
app.py
CHANGED
@@ -103,6 +103,9 @@ def process_file(client_file):
|
|
103 |
zip_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'vendor_files.zip')
|
104 |
load_vendor_files(zip_file_path) # Load vendor files from zip file
|
105 |
client_df = pd.read_excel(client_file.name)
|
|
|
|
|
|
|
106 |
client_df['score_client'] = client_df.iloc[:, 2].apply(parse_score).astype(float) #return numbr only from client score
|
107 |
|
108 |
client_df = client_df[client_df.iloc[:, 1] == 'Yes']
|
|
|
103 |
zip_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'vendor_files.zip')
|
104 |
load_vendor_files(zip_file_path) # Load vendor files from zip file
|
105 |
client_df = pd.read_excel(client_file.name)
|
106 |
+
|
107 |
+
client_df.iloc[:, 2].fillna('3 - Medium', inplace=True)
|
108 |
+
|
109 |
client_df['score_client'] = client_df.iloc[:, 2].apply(parse_score).astype(float) #return numbr only from client score
|
110 |
|
111 |
client_df = client_df[client_df.iloc[:, 1] == 'Yes']
|