-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
ENH: Iterate over HDF store hierarchically #10143
Comments
wouldn't be opposed to adding a |
That would provide at least a basic hook for walking through the HDFStore. Thinking more about my particular workflow, it might make sense instead to maintain a separate DataFrame with the paths to each DataFrame store, and some organizing metadata to query from. |
I'd like to work on this during the EuroSciPy 2015 sprints #10877 |
In case it's useful, I ended up using this construction to get all the
|
Related #6833 |
…les HDF5 file. This implementation is inspired by os.walk and follows the interface as much as possible.
Created PR #10932 |
…les HDF5 file. This implementation is inspired by os.walk and follows the interface as much as possible.
This issue has been open since 2015 and has the label "Effort Low", but it seems it has not been decided yet how to solve it? What is currently the recommended way to traverse the HDF5 store? I would like to get a list of only the top-level keys/groups. |
merged via 45e55af |
I am relatively new to pandas, but have been using raw HDF5 files for a long itme, so apologies if this feature or something equivalent already exists.
As stated in the documentation, it is possible to create hierarchies of data stores:
However, it seems that
store.keys()
can only provide a flattened list of all available groups. It would be nice to be able to walk the HDF5 file hierarchically. A couple examples (this is borrowing a bit from the h5py API):The main use case I would have for something like this is that I have many dataframes with different schema but would like to group some of them together and then iterate through those groups.
Best way I can think to emulate this is to parse the strings in
store.keys()
, but that is pretty ugly.The text was updated successfully, but these errors were encountered: