def clean_table(table, number_of_colums)
      above_row = []
      #filter if they are not last column, and they are same as the item on the row above
      table.reduce([]) { |result, row|
        result <<  row.each_with_index.map do |item,i|
          if i == number_of_colums
            item 
          else
            item == above_row[i] ? '' : item 
          end
        end
        above_row = row
        result
      }
    end
def clean_table(table, number_of_colums)
      above_row = []
      #filter if they are not last column, and they are same as the item on the row above
      table.reduce([]) { |result, row|
        result <<  row.each_with_index.map do |item,i|
          if i == number_of_colums
            item 
          else
            item == above_row[i] ? '' : item 
          end
        end
        above_row = row
        result
      }
    end
cleanup table so items don't repeat (if they are same)