def categorical_fillna(data, col, value="N"):
    """
    Fills a categorical features Nan Values with the provided value, returns a new column. 
    The pandas function sometimes does not work
    """
    def helper(x):
        if isinstance(x, float):
            return value
        return x
    return data[col].apply(helper)