📌 Pandas Beginner Friendly Solution 🚀
\uD83D\uDD3C IF YOU FIND THIS POST HELPFUL PLEASE UPVOTE \uD83D\uDC4D\n\nimport pandas as pd\n\ndef find_diabetes(conditions):\n    \n    for condition in condi
**\uD83D\uDD3C IF YOU FIND THIS POST HELPFUL PLEASE UPVOTE \uD83D\uDC4D**\n```\nimport pandas as pd\n\ndef find_diabetes(conditions):\n    \n    for condition in conditions.split(\' \'):\n        if condition.startswith("DIAB1"):\n            return True\n    \n    return False\n\ndef find_patients(patients: pd.DataFrame) -> pd.DataFrame:\n    \n    result = patients[patients[\'conditions\'].apply(find_diabetes)]\n    \n    return result\n```\n**Thank you for reading! \uD83D\uDE04 Comment if you have any questions or feedback.**
['Python']