PANDAS 1 LINER
\n# Code\n\nimport pandas as pd\n\ndef find_patients(patients: pd.DataFrame) -> pd.DataFrame:\n    return patients[patients[\'conditions\'].str.contains(\' DIAB
\n# Code\n```\nimport pandas as pd\n\ndef find_patients(patients: pd.DataFrame) -> pd.DataFrame:\n    return patients[patients[\'conditions\'].str.contains(\' DIAB1\') | patients[\'conditions\'].str.startswith(\'DIAB1\')]\n```
['Pandas']