

def index(self, name=None):
    'Returns index number of supplied column name.\n\n    Args:\n      name: string of column name.\n\n    Raises:\n      TableError: If name not found.\n\n    Returns:\n      Index of the specified header entry.\n    '
    try:
        return self.header.index(name)
    except ValueError:
        raise TableError(('Unknown index name %s.' % name))

dataset/ETHPy150Open google/textfsm/texttable.py TextTable.index/original