code: def removeDataFrameRows(self, rows):
          
          if not self.editable:
              return False
  
          if rows:
              position = min(rows)
              count = len(rows)
              self.beginRemoveRows(QtCore.QModelIndex(), position, position + count - 1)
  
              removedAny = False
              for idx, line in self._dataFrame.iterrows():
                  if idx in rows:
                      removedAny = True
                      self._dataFrame.drop(idx, inplace=True)
  
              if not removedAny:
                  return False
  
              self._dataFrame.reset_index(inplace=True, drop=True)
  
              self.endRemoveRows()
              return True
          return False
docs: Removes rows from the dataframe.
  
          :param rows: (list)
              of row indexes to removes.
          :return: (bool)
              True on success, False on failure.