Spaces:
Runtime error
Runtime error
Commit ·
d9987f2
1
Parent(s): 281f87d
Rename preprocess_fun.py to preprocess_function.py
Browse files
preprocess_fun.py → preprocess_function.py
RENAMED
|
@@ -23,10 +23,10 @@ stop_words = stop_words.union(stop_words_2)
|
|
| 23 |
|
| 24 |
list_location = []
|
| 25 |
for col in ['name','capital','region','subregion']:#countries
|
| 26 |
-
list_location.extend(list(set(pd.read_csv('/
|
| 27 |
-
list_location.extend(list(set(pd.read_csv('/
|
| 28 |
-
list_location.extend(list(set(pd.read_csv('/
|
| 29 |
-
list_location.extend(list(set(pd.read_csv('/
|
| 30 |
|
| 31 |
locations_removal = set([x.lower() for x in list_location if not pd.isna(x)])
|
| 32 |
|
|
|
|
| 23 |
|
| 24 |
list_location = []
|
| 25 |
for col in ['name','capital','region','subregion']:#countries
|
| 26 |
+
list_location.extend(list(set(pd.read_csv('/main/countries.csv')[col])))
|
| 27 |
+
list_location.extend(list(set(pd.read_csv('/main/states.csv')['name'])))
|
| 28 |
+
list_location.extend(list(set(pd.read_csv('/main/cities.csv')['name'])))
|
| 29 |
+
list_location.extend(list(set(pd.read_csv('/main/zones.csv')['Zone'])))
|
| 30 |
|
| 31 |
locations_removal = set([x.lower() for x in list_location if not pd.isna(x)])
|
| 32 |
|