-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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 method should also provide orient parameter (like to_json) #7840
Comments
to_dict
method should also provide "orient" parameter (like to_json
)to_dict
method should also provide orient
parameter (like to_json
)
can you show what kind of mapping you would expect here? care to submit a pull-request for this? |
to_dict
method should also provide orient
parameter (like to_json
)
I'm looking for orient='split'. |
not sure what you are asking? isn't `outtype='series`` what you are asking? maybe show an example? I suppose the API is different between |
See
I'm just proposing to have the same option name: "orient" for both method (but we can have different parameter name... but same is more convenient)
so it will be nice if we could have:
|
ic. ok, would then take a pull-request for this:
|
my problem is that I don't know how I can have my forked version and also stable version on the same computer.
|
easy enough, simply clone the repo complete instruction are here: https://github.com/pydata/pandas/wiki tests first, then a code change. |
closed by #8486 |
Hello,
it will be nice if
to_dict
method could provide sameorient
parameter asto_json
.For example when
outtype='split'
we get same results asouttype='series'
.I also noticed that
df.to_dict(outtype='split1234')
is understood asdf.to_dict(outtype='series')
which is quite strange butdf.to_dict(outtype='a1234')
raisesValueError: outtype a1234 not understood
which is a correct behaviorKind regards
Femto
The text was updated successfully, but these errors were encountered: