Rename variable in remove_duplicates function
This commit is contained in:
		
							parent
							
								
									aa4a3fdec9
								
							
						
					
					
						commit
						b584239d6e
					
				@ -40,10 +40,10 @@ def explore_solutions(solutions, data):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def remove_duplicates(current, previous, 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})"
 | 
					        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):
 | 
					def greedy_algorithm(n, m, data):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user