how to handle missing categorical data in python