Skip to content

Commit abcdfde

Browse files
Fix test_vasopressor_units Series.contains AttributeError
Use .isin — pandas Series has no .contains. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5bdb9a0 commit abcdfde

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)