Easy Unique Pandas Solution without Regex
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nimport pandas as pd\n\ndef find_patients(patients: pd.DataFrame) -> pd.DataFrame:\n  # Working Funciton have the conditions\n  def working(val):\n       \n   length = len(val.split(" "))\n   for i in range(length):\n      if val.split(" ")[i][0:5] == "DIAB1": \n         return True\n   \n   return False\n\n  \n  return patients[patients["conditions"].apply(lambda x: len(x)>= 5 and working(x))]\n```
['Pandas']