def __eq__(self, other):
        return all([getattr(self, a, None) == getattr(other, a, None)
                    for a in ['name', 'cname', 'dtype', 'pos']])
compare 2 col items
dataset/ETHPy150Open pydata/pandas/pandas/io/pytables.py/DataCol.__eq__