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):