Cannot Interpret CategoricalDtype

Have a look here: Problem with cont_cat_split() in Google Collab

You might want to check if replacing cont_cat_split with the modified version helps.