Having trouble implementing a k-anonymity algorithm using jupyter notebook -- 2

Job ID: 31705850

Budget: $10 – $30 USD

A well functioning algorithm on a Jupyter notebook where all cells are working
Our code is a modified version of this code :
https://github.com/Nuclearstar/K-Anonymity

To check if our code is working you should use:

def isKAnonymized(df, k):
for index, row in df.iterrows():
query = ' & '.join([f'{col} == {row[col]}' for col in df.columns])
rows = df.query(query)
if (rows.shape[0] < k):
return False