Skip to content

Commit

Permalink
column_names.remove_from_list: Return a list (does not modify origina…
Browse files Browse the repository at this point in the history
…l) iss #25
  • Loading branch information
astrochun committed Feb 20, 2020
1 parent 311ab05 commit 14a79fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Metallicity_Stack_Commons/column_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 14a79fd

Please sign in to comment.