From b584239d6ee31410fd64d6db21ffd3668f396227 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 15 Apr 2021 22:01:40 +0200 Subject: [PATCH] Rename variable in remove_duplicates function --- src/processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/processing.py b/src/processing.py index d338b31..11b4f41 100644 --- a/src/processing.py +++ b/src/processing.py @@ -40,10 +40,10 @@ def explore_solutions(solutions, data): def remove_duplicates(current, previous, data): - data = data.query( + duplicate_free_df = data.query( f"(source != {current} or destination not in @previous) and (source not in @previous or destination != {current})" ) - return data + return duplicate_free_df def greedy_algorithm(n, m, data):