8000 [ENH] Add orient argument and split option to to_dict. (GH7840) by rpetchler · Pull Request #8486 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

[ENH] Add orient argument and split option to to_dict. (GH7840) #8486

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

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
8000 Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove indentation from list in docstring.
  • Loading branch information
rpetchler committed Oct 6, 2014
commit 75552bfabea73ab09061fd0be1a5c1710e2072cc
14 changes: 7 additions & 7 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,13 +649,13 @@ def to_dict(self, orient='dict'):
orient : str {'dict', 'list', 'series', 'split', 'records'}
Determines the type of the values of the dictionary.

- dict (default) : dict like {column -> {index -> value}}
- list : dict like {column -> [values]}
- series : dict like {column -> Series(values)}
- split : dict like
{index -> [index], columns -> [columns], data -> [values]}
- records : list like
[{column -> value}, ... , {column -> value}]
- dict (default) : dict like {column -> {index -> value}}
- list : dict like {column -> [values]}
- series : dict like {column -> Series(values)}
- split : dict like
{index -> [index], columns -> [columns], data -> [values]}
- records : list like
[{column -> value}, ... , {column -> value}]

Abbreviations are allowed. `s` indicates `series` and `sp`
indicates `split`.
Expand Down
0