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
You can change the orientation using the orient URL parameter which is passed on to DataFrame.to_json(). I don't know if there is an orient that does exactly what you want but columns or values might do the trick.
Hello,
I need to construct my json like :
I have this, which is exactly what to_json gives:
[{"x":5,"y":7},{"x":3,"y":2},{"x":8,"y":6},{"x":5,"y":4}]
Is it possible to change this behavior ?
It might be a pandas question.
Thanks for your efforts ! I understand better how REST works now :)
Thomas
The text was updated successfully, but these errors were encountered: