def _column_index_from_name(self, name):

        for i, column in enumerate(self.columns):
            if name == column.name:
                return i
        return -1
Returns the index of the column with the given name or -1 if no
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/table_editor.py/TableEditor._column_index_from_name