Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -539,9 +539,9 @@ def main():
|
|
539 |
# csv_data = csv.DictReader(f)
|
540 |
|
541 |
# # Convert the CSV data to a list of dictionaries
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
|
546 |
# # Convert the list of dictionaries to JSON
|
547 |
json_data = json.dumps(data_list)
|
|
|
539 |
# csv_data = csv.DictReader(f)
|
540 |
|
541 |
# # Convert the CSV data to a list of dictionaries
|
542 |
+
data_list = []
|
543 |
+
for row in df_final1.iterrows():
|
544 |
+
data_list.append(dict(row))
|
545 |
|
546 |
# # Convert the list of dictionaries to JSON
|
547 |
json_data = json.dumps(data_list)
|