code: def filter_rows_with_differences(rows):
      
      if not rows:
          # empty table
          return []
      if len(rows[0].results) == 1:
          # table with single column
          return []
  
  
      def get_index_of_column(name, cols):
          for i in range(0, len(cols)):
              if cols[i].title == name:
                  return i
          return -1
  
  
      def all_equal_result(listOfResults):
          relevant_columns = set()
          for res in listOfResults:
              for relevant_column in res.columns_relevant_for_diff:
                  relevant_columns.add(relevant_column)
          if len(relevant_columns) == 0:
              relevant_columns.add("status")
  
          status = []
          for col in relevant_columns:
              # It's necessary to search for the index of a column every time
              # because they can differ between results
              status.append(
                  set(
                      res.values[get_index_of_column(col, res.columns)]
                      for res in listOfResults))
  
          return reduce(lambda x, y: x and (len(y) <= 1), status, True)
  
  
      rowsDiff = [row for row in rows if not all_equal_result(row.results)]
  
      if len(rowsDiff) == 0:
          logging.info("---> NO DIFFERENCE FOUND IN SELECTED COLUMNS")
      elif len(rowsDiff) == len(rows):
          logging.info("---> DIFFERENCES FOUND IN ALL ROWS, NO NEED TO CREATE DIFFERENCE TABLE")
          return []
  
      return rowsDiff
docs: Find all rows with differences in the status column.