A class to represent the classification of columns for DP anonymization Attributes ---------- hidden : list[str] List of column names that will not be anonymized categorical : list[str] List of categorical column names continuous : list[str] List of
| 3 | |
| 4 | |
| 5 | class DPColumnConfig: |
| 6 | """A class to represent the classification of columns for DP anonymization |
| 7 | |
| 8 | Attributes |
| 9 | ---------- |
| 10 | hidden : list[str] |
| 11 | List of column names that will not be anonymized |
| 12 | categorical : list[str] |
| 13 | List of categorical column names |
| 14 | continuous : list[str] |
| 15 | List of continuous column names |
| 16 | ordinal : list[str] |
| 17 | List of ordinal column names |
| 18 | |
| 19 | """ |
| 20 | |
| 21 | def __init__( |
| 22 | self, |
| 23 | hidden: list[str], |
| 24 | categorical: list[str], |
| 25 | continuous: list[str], |
| 26 | ordinal: list[str], |
| 27 | ): |
| 28 | self.hidden = hidden |
| 29 | self.categorical = categorical |
| 30 | self.continuous = continuous |
| 31 | self.ordinal = ordinal |
| 32 | |
| 33 | |
| 34 | class DPConfig: |