" # ========== CALCULA ACURACIA TOTAL ==========\n",
" # Acurácia matches\n",
" acertos = 0\n",
" for res in resultados:\n",
" if(len(res) == 0):\n",
" continue\n",
" for i in res:\n",
" if i[0] == i[2] and i[0] not in no_data_columns and i[0] not in found_new_columns and i[2] not in no_data_columns and i[2] not in found_new_columns:\n",
" if i[0] == i[2]:\n",
" acertos += 1\n",
" break\n",
" \n",
" # Acurácia novas colunas\n",
" for new in found_new_columns:\n",
" if new in true_new_columns and new not in no_data_columns and new not in all_match_columns:\n",
" if new in true_new_columns:\n",
" acertos += 1\n",
"\n",
" # Acurácia colunas vazias\n",
" for no_data in no_data_columns:\n",
" if no_data in true_empty_columns and no_data not in found_new_columns and no_data not in all_match_columns:\n",