code: def removeRow(self, triggered):
          
          if triggered:
              model = self.tableView.model()
              selection = self.tableView.selectedIndexes()
  
              rows = [index.row() for index in selection]
              model.removeDataFrameRows(set(rows))
              self.sender().setChecked(False)
docs: Removes a row to the model.
  
          This method is also a slot.
  
          Args:
              triggered (bool): If the corresponding button was
                  activated, the selected row will be removed
                  from the model.