def index(self, name=None):  # pylint: disable=C6409
    """Returns index number of supplied column name.

    Args:
      name: string of column name.

    Raises:
      TableError: If name not found.

    Returns:
      Index of the specified header entry.
    """
    try:
      return self.header.index(name)
    except __HOLE__:
      raise TableError('Unknown index name %s.' % name)
dataset/ETHPy150Open google/textfsm/texttable.py/TextTable.index