def category_clean(category_value):
    if isinstance(category_value, str) is False and np.isnan(category_value) is True:
        return 0
    return category_value
Retun a 0 for np.NaN values.
dataset/ETHPy150Open agconti/KaggleAux/kaggleaux/modeling.py/category_clean