Skip to content

Commit 4bd2f14

Browse files
authored
Merge pull request MIT-LCP#2062 from Chessing234/fix/test-vasopressor-series-isin
Fix test_vasopressor_units Series.contains AttributeError
2 parents 63624e0 + abcdfde commit 4bd2f14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mimic-iv/tests/test_medication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_vasopressor_units(dataset, project_id):
5858
"""
5959
df = gbq.read_gbq(query, project_id=project_id, dialect="standard")
6060
# if we find new uninspected rows, raise a warning. this will only happen when mimic-iv is updated.
61-
if (~df['hadm_id'].contains(hadm_id_list)).any():
61+
if (~df['hadm_id'].isin(hadm_id_list)).any():
6262
_LOGGER.warn(f"""New data found with non-standard unit. Inspect the data with this query:
6363
6464
select *

0 commit comments

Comments
 (0)