Skip to content

Commit 17e013d

Browse files
committed
added warning for retrieving from groups, now separate PR
1 parent ed3d145 commit 17e013d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/source/io.rst

+20
Original file line numberDiff line numberDiff line change
@@ -2895,6 +2895,26 @@ everything in the sub-store and BELOW, so be *careful*.
28952895
28962896
.. _io.hdf5-types:
28972897

2898+
2899+
.. warning:: Hierarchical keys cannot be retrieved as dotted (attribute) access as described above for items stored under root node.
2900+
2901+
.. ipython:: python
2902+
2903+
store.foo.bar.bah
2904+
AttributeError: 'HDFStore' object has no attribute 'foo'
2905+
2906+
store.root.foo.bar.bah
2907+
/foo/bar/bah (Group) ''
2908+
children := ['block0_items' (Array), 'axis1' (Array), 'axis0' (Array), 'block0_values' (Array)]
2909+
2910+
Use explicit string based keys
2911+
2912+
.. ipython:: python
2913+
2914+
bah = store['foo/bar/bah']
2915+
2916+
2917+
28982918
Storing Types
28992919
'''''''''''''
29002920

0 commit comments

Comments
 (0)