There is a hard-to-debug error in categories_to_bool_vars when there are missing NaN values for an attribute value:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bwb/.pyenv/versions/itf/lib/python3.11/site-packages/team_formation/team_assignment.py", line 188, in __init__
bool_vars = categories_to_bool_vars(attr_name, self.participants[attr_name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bwb/.pyenv/versions/itf/lib/python3.11/site-packages/team_formation/team_assignment.py", line 610, in categories_to_bool_vars
unique_cats = sorted(set(cat_values))
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'float' and 'str'
There should be a check for missing values with a descriptive error.
There is a hard-to-debug error in
categories_to_bool_vars
when there are missing NaN values for an attribute value:There should be a check for missing values with a descriptive error.