Update app.py
Browse files
app.py
CHANGED
|
@@ -427,7 +427,8 @@ def execute_unified_search(base_std, base_ver, base_cat, comp_std, comp_ver, com
|
|
| 427 |
|
| 428 |
def clean_key_val(v):
|
| 429 |
s = str(v).strip()
|
| 430 |
-
if s.endswith('.0')
|
|
|
|
| 431 |
return s.replace(" ", "")
|
| 432 |
|
| 433 |
df_base['merge_key'] = df_base[real_anchors_b].apply(lambda row: '-'.join([clean_key_val(x) for x in row]), axis=1)
|
|
|
|
| 427 |
|
| 428 |
def clean_key_val(v):
|
| 429 |
s = str(v).strip()
|
| 430 |
+
if s.endswith('.0') and s[:-2].isdigit():
|
| 431 |
+
s = s[:-2]
|
| 432 |
return s.replace(" ", "")
|
| 433 |
|
| 434 |
df_base['merge_key'] = df_base[real_anchors_b].apply(lambda row: '-'.join([clean_key_val(x) for x in row]), axis=1)
|