-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running simpleimputer_intro.py in the example #118
Comments
this was due to a backwards-incompatible API change in pandas 1.0 and was addressed in this PR - sorry that we did not get to release a new version yet. A quick fix could be to pip install pandas==0.25.0 manually before installing datawig. In a jupyter notebook this could be done like: !pip install pandas==0.25.0
!pip install datawig Does this solve the problem? |
It works for the moment,but there are warnings about the future,I find it feasible to modify the following two lines in imputer.py |
You're right, and we've fixed those lines in the last PR i had mentioned earlier, in particular the lines you mentioned are compliant with the new pandas API, see for instance here. While the source code is fixed since some time that commit is not released in pip yet, we'll make sure that this and and some other mxnet related fix will be released asap. Thanks for noticing this! |
Should be solved with latest release, please reopen if problem persists |
Hey, @felixbiessmann It seems that this issue still persists. I get the initial error when trying to do:
Followed by error:
Following the advice from the thread above, I attempt to do locally in a Notebook:
However that Pandas version seems to fail when installing as it seems to have been deprecated. Is there another solution to get around this? Thanks! |
Hey, thanks for the heads up, we're currently in the process of refactoring the package and there's a pending PR that should solve some of these Problems - but it's in a preliminary stage. Until the next release I'd recommend to use the old package versions. Thanks |
Okay, thank you @felixbiessmann - in the meantime, do you recommend a particular old package version? |
Same problem. I am facing too :( |
I am still facing the same issue. Any advice? |
Hi, Is there an update on this issue? I am facing the same issue - I have pandas 1.2.4 and going back to 0.25.0 is not an option since it's been deprecated. |
您的邮件已收到,谢谢!
|
When I ran the simpleimputer_intro.py in the example, the following error occurred
Traceback (most recent call last):File "/Users/chen/PycharmProjects/test2/datamissing/examples/simpleimputer_intro.py", line 41, in <module> predictions = imputer.predict(df_test)
File "/usr/local/lib/python3.7/site-packages/datawig/simple_imputer.py", line 420, in predict score_suffix, inplace=inplace)
File "/usr/local/lib/python3.7/site-packages/datawig/imputer.py", line 822, in predict if data_frame.columns.contains(imputation_col):
AttributeError: 'Index' object has no attribute 'contains'
It could be a data processing error in predict function
The text was updated successfully, but these errors were encountered: