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