Spaces:
Runtime error
Runtime error
Commit ·
375f9e5
1
Parent(s): bf78592
Update mapping.py
Browse files- mapping.py +1 -1
mapping.py
CHANGED
|
@@ -21,7 +21,7 @@ def get_mapping(prep_text):
|
|
| 21 |
industries['industries_name_clean'] = industries['name'].str.replace('&','').str.strip()
|
| 22 |
industries['industries_name_clean'] = industries['industries_name_clean'].str.replace('IT','information technology').str.replace(',','').str.lower()
|
| 23 |
|
| 24 |
-
other_industries = pd.read_csv('
|
| 25 |
other_industries['other_industries_name_clean'] = other_industries['Industry'].str.replace('-',' ').str.replace('/',' ').str.replace('(',' ').str.replace(')',' ').replace('&',' ').str.strip().str.lower()
|
| 26 |
|
| 27 |
n_neighbors = 1
|
|
|
|
| 21 |
industries['industries_name_clean'] = industries['name'].str.replace('&','').str.strip()
|
| 22 |
industries['industries_name_clean'] = industries['industries_name_clean'].str.replace('IT','information technology').str.replace(',','').str.lower()
|
| 23 |
|
| 24 |
+
other_industries = pd.read_csv('other_industries.csv')
|
| 25 |
other_industries['other_industries_name_clean'] = other_industries['Industry'].str.replace('-',' ').str.replace('/',' ').str.replace('(',' ').str.replace(')',' ').replace('&',' ').str.strip().str.lower()
|
| 26 |
|
| 27 |
n_neighbors = 1
|