You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
results = [dict([k, str(v)] if v is not None else [k, v]
for k, v in enumerate(i)) for i in results]
results = '\n'.join([json.dumps(i) for i in list(results)])
If we just run it by this.
For example if the data on the table in mysql is,
id: 1
value:100
the results will come out on S3 as {"0":"1", "1":"100"}
But I want to get a result like this = {"id":"1", "value":"100"}