forked from SVIG/python-bootcamp
View the HDF5 file
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
import h5py
|
||||||
|
import pandas as pd
|
||||||
|
|
||||||
|
f = h5py.File('product1.h5','r')
|
||||||
|
list(f.keys())
|
||||||
|
for key in f.keys():
|
||||||
|
print(f[key])
|
||||||
|
# print(f[key].shape)
|
||||||
|
# print(f[key].value)
|
||||||
|
df = pd.read_hdf('product1.h5', key='df8')
|
||||||
|
print(df)
|
||||||
Reference in New Issue
Block a user