pandas.HDFStore.groups — pandas 3.0.0.dev0+2104.ge637b4290d documentation (original) (raw)
Return a list of all the top-level nodes.
Each node returned is not a pandas storage object.
Returns:
list
List of objects.
See also
HDFStore.get_node
Returns the node with the key.
Examples
df = pd.DataFrame([[1, 2], [3, 4]], columns=["A", "B"]) store = pd.HDFStore("store.h5", "w")
store.put("data", df)
print(store.groups())
store.close()
[/data (Group) '' children := ['axis0' (Array), 'axis1' (Array), 'block0_values' (Array), 'block0_items' (Array)]]