

def index(self, column):
    'Fetches the column number (0 indexed).\n\n    Args:\n      column: A string, column to fetch the index of.\n\n    Returns:\n      An int, the row index number.\n\n    Raises:\n      ValueError: The specified column was not found.\n    '
    for (i, key) in enumerate(self._keys):
        if (key == column):
            return i
    raise ValueError(('Column "%s" not found.' % column))

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