def fill_NA_explicit()

in Python/step1_data_preprocessing.py [0:0]


    def fill_NA_explicit(dataset, context):
        data = DataFrame(dataset)
        for name in char_names:
            data.loc[data[name].isnull(),name] = "missing"
        for name in num_names:
            data.loc[data[name].isnull(),name] = -1
        return data