-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
to_json() Flat Output #8333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not nearly as efficient (as json is implemented in c), but you can do this (and its a python structure not JSON....but)
|
related is #5729 |
Hi there, this feature is really needed. These flat arrays All the solutions above don't work so my way was |
well @grafa pull-requests are welcome. |
I would like to help but I'm not such experienced to deliver solution that matches Pandas code quality. |
closing as dupe of #5729 |
The to_json() I/O command current provides the following output:
It would be handy if the output could also be provided in the format:
This format is, for instance, used by the DyGraphs JS library for plotting data.
The following command provides the output I am looking for:
(where
df
is a DataFrame)The text was updated successfully, but these errors were encountered: