diff --git a/Metallicity_Stack_Commons/column_names.py b/Metallicity_Stack_Commons/column_names.py index 6b70ccc..94a0d26 100644 --- a/Metallicity_Stack_Commons/column_names.py +++ b/Metallicity_Stack_Commons/column_names.py @@ -55,5 +55,9 @@ def remove_from_list(list0, remove_entries): :param remove_entries: list of column names to remove """ + dup_list0 = list0.copy() + for entry in remove_entries: - list0.remove(entry) + dup_list0.remove(entry) + + return dup_list0 \ No newline at end of file