-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
make DataFrame.to_dict(orient='list') output native python elements #9108
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
Conversation
@adamgreenhall Could you please explain the motivation behind this change in a little more detail? This will also need tests. |
This change is about enabling the export of a DataFrame into a part of a json document (I know This change fixes the immediate symptom by converting all list element values to native python types. Perhaps the underlying issue is really that np.bool types are not json compatible - but I wasn't sure how to address that.
|
if you don't need to do anything special with your frames you can use
|
|
|
I like the idea of using |
how comfortable are you with C? |
you can also do this with
|
@cpcloud - that works for me - thanks! |
No description provided.