Rename variable in remove_duplicates function

This commit is contained in:
coolneng 2021-04-15 22:01:40 +02:00
parent aa4a3fdec9
commit b584239d6e
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 2 deletions

View File

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