def write_metadata(self, handler):
        if self.metadata is not None:
            handler.write_metadata(self.cname, self.metadata)
set the meta data
dataset/ETHPy150Open pydata/pandas/pandas/io/pytables.py/IndexCol.write_metadata