code: def headerData(self, section, orientation, role):
          
          if role == QtCore.Qt.DisplayRole:
              if orientation == QtCore.Qt.Horizontal:
                  return self.headers[section]
docs: Get the Header for the columns in the table
  
          Required by view, see :qtdoc:`subclassing<qabstractitemmodel.subclassing>`
  
          :param section: column of header to return
          :type section: int