Skip to content

Commit

Permalink
Fix bug where passing a numpy array into a hierarchy would break things.
Browse files Browse the repository at this point in the history
  • Loading branch information
makmanalp committed Jun 30, 2015
1 parent d36752a commit 58e57c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def repeated_table_to_parent_id_table(df, hierarchy):
class Hierarchy(collections.Mapping):

def __init__(self, items):
self.items = items
self.items = list(items)

def __contains__(self, item):
return item in self.items
Expand Down

0 comments on commit 58e57c5

Please sign in to comment.