Error in predict_profile
when a Dataframe with MultiIndex is Used
#550
Labels
invalid ❕
This doesn't seem right
maintenance 🔨
Code enhancements, tests and maintenance
Python 🐍
Related to Python
I am calling
predict_profile
method with a dataframe which has multiple columns as index. This results in an error.How to Replicate
This occurs when pandas version is after 1.3.0. It doesn't occur in 1.2.5 and before.
Error Message
Solution
I have found the same error in the issues of another project and they suggest downgrading pandas to 1.2.4. Downgrading pandas to 1.2.4 solved the issue for me too.
I noticed another thing while looking at the
single_variable_profile
function inpredict_explanations._ceteris_paribus.utils
file. Changing the following line from:to:
solves the issue in pandas versions 1.2.5 and 1.3.0.
The text was updated successfully, but these errors were encountered: