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
The text was updated successfully, but these errors were encountered:
klenium
changed the title
Series.to_json(orient='records') does not return JSON
Series.to_json(orient='records') does not return records-based JSON
Dec 22, 2021
row['type'] = str(type(row)) -> <class 'pandas.core.series.Series'>
Well that's unexpected, why is a Pandas Series used there?
Also why wouldn't it return records-based JSON uh.
That works as expected. The documentation says:
So if instead of
row.to_json()
I writerow.to_json(orient = 'records')
, the output must be the same. But it's not:Which is rather the values format from Pandas.
The text was updated successfully, but these errors were encountered: