Hello there,
I have an excel file which has multiple tabs. For each tab, I do some minor optimizations and finally I convert each tab to a JSON string. What I want to do is merge all these JSON strings together, so I only would have 1 output.json.
This is the current code:
base_json = []
for i in range(4):
df = pd.read_excel(path)
# Some optimizations here
json_str = df.to_json(orient='records')
base_json += json.loads(json_str)
base_json
When I try to set the output to a JSON file, it screams errors about not being converted correctly. See the image as an example. Can maybe someone tell me on how i can fix this?