The HDF5 format apparently does not support categoricals with format="fixed". The following example
s = pd.Series(['a','b','a','b'],dtype='category')
s.to_hdf('s.h5','s')
Returns the error:
NotImplementedError: Cannot store a category dtype in a HDF5 dataset that uses format="fixed". Use format="table".
How do I construct the categorical series with format='table'?