-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DataFrame to dict with index orientation. #10844
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
DataFrame to dict with index orientation. #10844
Conversation
hmm, seems resonable. can you add a note in whatsnew / enhancements. (also add a versionadded tag in the doc-string). |
44a4342
to
e7f47ce
Compare
Just added the note and the versionadded tag you asked. Should I've opened an issue before submit the pull request? |
@@ -174,6 +174,8 @@ Other enhancements | |||
|
|||
- ``msgpack`` submodule has been updated to 0.4.6 with backward compatibility (:issue:`10581`) | |||
|
|||
- ``DataFrame.to_dict`` now accepts the *index* option in ``orient`` keyword argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this PR number as the issue number
minor corrections. pls squash. ping when green. |
Added an index orient option for DataFrame.to_dict method. Updated tests with index option.
e7f47ce
to
61ef723
Compare
…#10844 Added an index orient option for DataFrame.to_dict method. Updated tests with index option.
merged via 73dcb95 thanks! |
The method
DataFrame.to_dict
didn't have an option for index orientation unlike its cousinto_json
, which does have.