K-Anonymity
K-Anonymity copied to clipboard
erreur résolu
replace line 173 with : values = {'age' : grouped_columns[0], 'education-num' : grouped_columns[0]} now we no longer have the error list object has no attribute 'to_dict()'
then while printing your base you get the error " unhashable type: 'list' " you just need to replace all the prints of your k-anonyme,l-diverse and t-close databases that are named dfn , dfl and dft by print(dfn.head())...
then the code works perfectly