dataFrameAnonymizer_6.py 224 B

12345
  1. def partition_dataframe(self, df, k, l=0) -> List[NumericIndex]:
  2. mondrian = MondrianAnonymizer(df, self.feature_columns, self.sensitive_attribute_columns)
  3. partitions = mondrian.partition(k, l)
  4. return partitions