| Conditions | 1 |
| Total Lines | 4 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Defines functions that will serve as engine commands with an arbitrary object as receiver. |
||
| 9 | def encode_nominal_subsets_command(datapoints, attribute, new_attribute): |
||
| 10 | phi = ListOfCategoricalPhi(DatapointsAttributePhi(datapoints)) |
||
| 11 | new_values = phi(attribute) |
||
| 12 | datapoints.mutator.add_column(datapoints, new_values, new_attribute) |
||
| 13 |