Open davideyre opened 1 year ago
Upvoting this issue.
It seems to be fixed with the recent commit but has not yet been published to PyPi. Simply install from Github using the commit hash:
pip install git+https://github.com/vvcb/comorbidipy.git@c676a8067ce343704d75bcf8180f9baa1ac47664
Make sure to uninstall any previous version first using
pip uninstall comorbidipy
Goto calculator.py ~AppData\Local\Programs\Python\Python311\Lib\site-packages\comorbidipy
Change from pandas.core.common import SettingWithCopyWarning
TO
from pandas.errors import SettingWithCopyWarning
@vvcb This fixes the issue and the import works as described in the docs
It seems to be fixed with the recent commit but has not yet been published to PyPi. Simply install from Github using the commit hash:
pip install git+https://github.com/vvcb/comorbidipy.git@c676a8067ce343704d75bcf8180f9baa1ac47664
Make sure to uninstall any previous version first using
pip uninstall comorbidipy
@rbngz is right. @vvcb you need to patch the current pypi version.
Description
Comorbidipy works fine with pandas 1.4.0, but when trying to run with a more recent version I get this error, e.g. version 1.5.0 or version 2.0.1
The issue seems to be that the import is now in pandas.errors, this doesn't work -
But this does