Skip to content

Commit

Permalink
column_names: Add remove_from_list function (iss #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Feb 20, 2020
1 parent aced264 commit 311ab05
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Metallicity_Stack_Commons/column_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,16 @@ def merge_column_names(*args):
merge_list += elem

return merge_list


def remove_from_list(list0, remove_entries):
"""
Purpose:
Remove entries from list
:param list0: list of column names
:param remove_entries: list of column names to remove
"""

for entry in remove_entries:
list0.remove(entry)

0 comments on commit 311ab05

Please sign in to comment.