We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82f5a05 commit 0f460e7Copy full SHA for 0f460e7
src/solutions/s1527_patients_with_a_condition.py
@@ -0,0 +1,5 @@
1
+import pandas as pd
2
+
3
4
+def find_patients(patients: pd.DataFrame) -> pd.DataFrame:
5
+ return patients.loc[patients["conditions"].str.contains(r"(^| )DIAB1")]
0 commit comments