I am trying to store a variable length list of string to a HDF5 Dataset. The code for this is
import h5py
h5File=h5py.File('xxx.h5','w')
strList=['asas','asas','asas']
h5File.create_dataset('xxx',(len(strList),1),'S10',strList)
h5File.flush()
h5File.Close()
I am getting an error stating that "TypeError: No conversion path for dtype: dtype('< U3')"
where the < means actual less than symbol
How can I solve this problem.