-
Notifications
You must be signed in to change notification settings - Fork 26
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
Indexed column breaks generation of icephys hierarchical dataframe #665
Comments
Thanks for creating the issue. I'll take a look on Monday. |
Ok, the problem is that pandas.MultiIndex does not support list, i.e., we'll need to convert the list from indexed columns to tuples before converting to the MultiIndex. |
@lvsltz #666 fixes this issue and adds tests in HDMF. Also NeurodataWithoutBorders/pynwb#1404 adds the test case you provided above to PyNWB. Thanks for reporting the issue and providing a simple test example, which made it much easier to chase down the bug. |
Thanks @oruebel. I'm glad it was easy to fix. I can confirm it works as expected. |
* Fix #665 TypeError in to_hierarchical_dataframe when index contains lists due to VectorIndex columns Co-authored-by: Ryan Ly <[email protected]>
Description
Some of the metadata in the icephys tables are arrays. Writing these tables to NWB succeeds, but on read
to_hierarchical_dataframe
appears to fail if one of the columns in theDynamicTable
is indexed.Steps to Reproduce
Environment
Checklist
The text was updated successfully, but these errors were encountered: