Unrelated to the above but related to instance_key. I think that the column specified by instance_key should never be categorical, so we should remove this line:
|
if not is_categorical_dtype(data[instance_key]): |
Originally posted by @LucaMarconato in #158 (comment)