LeetcodeFull List1501-20001527. Patients With a ConditionOn this page1527. Patients With a ConditionPandas import pandas as pddef find_patients(patients: pd.DataFrame) -> pd.DataFrame: return patients[patients['conditions'].str.match(r'(\bDIAB1|.+ DIAB1)')] SQL SELECT patient_id, patient_name, conditionsFROM PatientsWHERE conditions REGEXP '\\bDIAB1'