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

Pandas to HDF does not support both hierarchical rows and hierarchical columns #12

Open
daliu87 opened this issue Jun 10, 2019 · 2 comments

Comments

@daliu87
Copy link
Owner

daliu87 commented Jun 10, 2019

While pandas supports both hierarchical rows and columns, writing to HDF is not and it looks like this feature will not be supported anytime soon: pandas-dev/pandas#5823

All datatypes with both multi-index rows and columns should be converted to have columns be a normal index. Hierarchical columns will be represented based on column name only.

@daliu87
Copy link
Owner Author

daliu87 commented Jun 10, 2019

linpos is currently the only datatype this affects.

@daliu87
Copy link
Owner Author

daliu87 commented Jun 12, 2019

Solution could be to just use stack() to move column hierarchy into the index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant