Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,12 +26,12 @@ def preprocess_data(df):
|
|
26 |
return [x.strip() for x in str(val).split('\n') if x.strip()]
|
27 |
|
28 |
df_cleaned = pd.DataFrame({
|
29 |
-
"url": "https://www.shl.com" + df.iloc[:,
|
30 |
-
"remote_support": df.iloc[:,
|
31 |
-
"adaptive_support": df.iloc[:,
|
32 |
-
"test_type": df.iloc[:,
|
33 |
-
"description": df.iloc[:,
|
34 |
-
"duration": df.iloc[:,
|
35 |
})
|
36 |
return df_cleaned
|
37 |
|
|
|
26 |
return [x.strip() for x in str(val).split('\n') if x.strip()]
|
27 |
|
28 |
df_cleaned = pd.DataFrame({
|
29 |
+
"url": "https://www.shl.com" + df.iloc[:, 1].astype(str),
|
30 |
+
"remote_support": df.iloc[:, 2].apply(clean_support),
|
31 |
+
"adaptive_support": df.iloc[:, 3].apply(clean_support),
|
32 |
+
"test_type": df.iloc[:, 4].apply(clean_test_type),
|
33 |
+
"description": df.iloc[:, 5],
|
34 |
+
"duration": df.iloc[:, 8].apply(clean_duration),
|
35 |
})
|
36 |
return df_cleaned
|
37 |
|