Skip to content
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

Support explicitly setting a dimension order with to_dataframe() #4331

Closed
shoyer opened this issue Aug 10, 2020 · 0 comments · Fixed by #4333
Closed

Support explicitly setting a dimension order with to_dataframe() #4331

shoyer opened this issue Aug 10, 2020 · 0 comments · Fixed by #4333

Comments

@shoyer
Copy link
Member

shoyer commented Aug 10, 2020

As discussed in #2346, it would be nice to support explicitly setting the desired order of dimensions when calling Dataset.to_dataframe() or DataArray.to_dataframe().

There is nice precedent for this in the to_dask_dataframe method:
http://xarray.pydata.org/en/stable/generated/xarray.Dataset.to_dask_dataframe.html

I imagine we could copy the exact same API for `to_dataframe.

dcherian pushed a commit that referenced this issue Aug 14, 2020
* #4331: Adding dim_order parameter to Dataset.to_dataframe

* #4331: Typo

* #4331: Adding dim_order parameter to DataArray.to_dataframe.
Refactoring some code, fixing some docstring.

* #4331: Updating whats-new.rst

* #4331: Updating whats-new.rst (bis)

Co-authored-by: tzilio <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant