theislab / ehrapy

Electronic Health Record Analysis with Python.
https://ehrapy.readthedocs.io/
Apache License 2.0
237 stars 19 forks source link

pp.mice_forest_impute fails with newest version of miceforest #799

Closed nicolassidoux closed 2 months ago

nicolassidoux commented 2 months ago

Report

Using a new venv, pip install ehrapy. Execute then the following:

import ehrapy as ep
adata = ep.dt.mimic_2(encoded=True)
ep.pp.mice_forest_impute(adata) # Fails

mice_forest_impute will need to be adapted to the newest version of miceforest package. Also a change in CI should be made to detect such problem in the future.

Version information

Python 3.12.5 (tags/v3.12.5:ff3bc82, Aug 6 2024, 20:45:27) [MSC v.1940 64 bit (AMD64)] Windows-10-10.0.19045-SP0