theislab / ehrapy

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

Encoding: Converting `np.inexact` or `np.floating` to a dtype is deprecated. The current result is `float64` which is not strictly correct. #684

Closed Zethson closed 6 months ago

Zethson commented 7 months ago

Report

/Users/eljasroellin/Documents/ehrapy_clean/ehrapy/ehrapy/preprocessing/_encoding.py:271: DeprecationWarning: Converting np.inexact or np.floating to a dtype is deprecated. The current result is float64 which is not strictly correct. encoded_ann_data.X = encoded_ann_data.X.astype(np.number)

Version information

No response