Code Sample, a copy-pastable example if possible

# Your code here
import h5py as h5
f = h5.File('test.h5', 'w')
f.create_dataset('da1', data = [1,2,3])
f.close()
import pandas as pd
pd.read_hdf('./test.h5', key='da1')

Problem description

when I use h5py module to create h5 file, but I can't read it by read_hdf function.

Expected Output

Output of pd.show_versions()

# Paste the output here pd.show_versions() here python: 2.7.12.final.0 pandas: 0.18.1

Comment From: jreback

http://pandas.pydata.org/pandas-docs/stable/io.html#io-hdf5 HDF5 support is only for PyTables.

You can simply use the to_hdf and read_hdf files, no need to use h5py at all.