Thanks to @Corralien line of code, I came out with this solution, this solution simply prints out the username that is being duplicated in the excel file and if the row is duplicated for more than 3 times with all high level on another column then it appends it to a list, please comment out here if you have a better solution !
import pandas as pd
df = pd.read_csv("PATH")
username_len = df['username']
Medical_alert_list = []
for i in range(len(username_len)):
try:
Username = df[df['level'] == 'high']['username'][i]
if df[df['level'] == 'high'].value_counts('username')["{}".format(Username)] >= 3:
duplicates = df[df['level'] == 'high']['username'][i]
Medical_alert_list.append(duplicates)
else:
pass
except:
pass
final_new_menu = list(dict.fromkeys(Medical_alert_list))
alert = "\033[31m[!]\033[0m "
for i in final_new_menu:
print("{}{}".format(alert,i))