dataFrameAnonymizer_1.py 349 B

12345678910
  1. def init_feature_colums(self, df):
  2. # Setup feature columns / Quasi identifiers
  3. fc = []
  4. if self.feature_columns is None:
  5. # Assume that all other columns are feature columns
  6. for col in df.columns:
  7. if col not in self.sensitive_attribute_columns:
  8. fc.append(col)
  9. self.feature_columns = fc