Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def map_names(odf,fname):
|
|
| 52 |
if g_mapping is None:
|
| 53 |
g_mapping = download_csv_as_dataframe('https://docs.google.com/spreadsheets/d/1rVoLrrTEDzU79x2H2Z1lJ7-z_jRbt-NMUdTarjLvSGo/edit?usp=drive_link')
|
| 54 |
mapping = g_mapping#pd.read_csv("data_automation_mapping.csv")
|
| 55 |
-
|
| 56 |
ftype = next((element for element in [x for x in list(mapping['type'].unique())] if element.lower() in fname), None)
|
| 57 |
fcompany = next((element for element in [x for x in list(mapping['company'].unique())] if element.lower() in fname), None)
|
| 58 |
mapped_frame = None
|
|
|
|
| 52 |
if g_mapping is None:
|
| 53 |
g_mapping = download_csv_as_dataframe('https://docs.google.com/spreadsheets/d/1rVoLrrTEDzU79x2H2Z1lJ7-z_jRbt-NMUdTarjLvSGo/edit?usp=drive_link')
|
| 54 |
mapping = g_mapping#pd.read_csv("data_automation_mapping.csv")
|
| 55 |
+
fname = fname.lower()
|
| 56 |
ftype = next((element for element in [x for x in list(mapping['type'].unique())] if element.lower() in fname), None)
|
| 57 |
fcompany = next((element for element in [x for x in list(mapping['company'].unique())] if element.lower() in fname), None)
|
| 58 |
mapped_frame = None
|