def enrich_with_bag(self, bag):
    'Enrich the adres data with information from the BAG data. Uses the bag dataframe as input.'
    bag = self.prepare_bag(bag)
    self.data = self.prepare_adres(self.data)
    self.data = self.match_bwv_bag(self.data, bag)
    self.data = self.replace_string_nan_adres(self.data)
    self.data = self.impute_values_for_bagless_addresses(self.data)
    self.version += '_bag'
    self.save()
    print('The adres dataset is now enriched with BAG data.')
Enrich the adres data with information from the BAG data. Uses the bag dataframe as input.
def enrich_with_bag(self, bag):
    
    bag = self.prepare_bag(bag)
    self.data = self.prepare_adres(self.data)
    self.data = self.match_bwv_bag(self.data, bag)
    self.data = self.replace_string_nan_adres(self.data)
    self.data = self.impute_values_for_bagless_addresses(self.data)
    self.version += '_bag'
    self.save()
    print('The adres dataset is now enriched with BAG data.')