Transform train file from CSV to HDF format