Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def format_table_data(data_string):
|
|
31 |
rows = data_string.strip().split("\n")
|
32 |
|
33 |
# Split each row into columns based on the separator '|' and strip extra spaces
|
34 |
-
data_list = [row.split("|")
|
35 |
formatted_data = [[cell.strip() for cell in row] for row in data_list]
|
36 |
|
37 |
return formatted_data
|
|
|
31 |
rows = data_string.strip().split("\n")
|
32 |
|
33 |
# Split each row into columns based on the separator '|' and strip extra spaces
|
34 |
+
data_list = [row.split("|") for row in rows]
|
35 |
formatted_data = [[cell.strip() for cell in row] for row in data_list]
|
36 |
|
37 |
return formatted_data
|