mappings_out = []
for switch in ordinal_mapping:
values = [x[1] for x in switch.get("mapping")]column_mapping = self.fit_helmert_coding(values)
mappings_out.append({"col": switch.get("col"), "mapping": column_mapping, })
self.mapping = mappings_out
After Change
mappings_out = []
for switch in ordinal_mapping:
values = switch.get("mapping").get_values()column_mapping = self.fit_helmert_coding(values)
mappings_out.append({"col": switch.get("col"), "mapping": column_mapping, })
self.mapping = mappings_out