Skip to content
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

Support pandas 1.0 #85

Closed
dialvarezs opened this issue Mar 9, 2020 · 6 comments
Closed

Support pandas 1.0 #85

dialvarezs opened this issue Mar 9, 2020 · 6 comments

Comments

@dialvarezs
Copy link

Pandas 1.0 removed some functionalities previously deprecated, and some features seems to be broken. For example, trying to fit a FAMD gives the following error:

~/.pyenv/versions/3.8.2/envs/bioinformatics/lib/python3.8/site-packages/prince/one_hot.py in transform(self, X)
     29 
     30     def transform(self, X):
---> 31         return pd.SparseDataFrame(
     32             data=super().transform(X),
     33             columns=self.column_names_,

TypeError: SparseDataFrame() takes no arguments
@MaxHalford
Copy link
Owner

Yeah I got to fix this...

@codyseally
Copy link

Hi, trying to use MCA from your package and I get the same error. Any idea what I need to change to make it work? I really need to make that plot :(

@dialvarezs
Copy link
Author

@CodePanda9 you could downgrade pandas fow now. How are you installing the packages?

@ulinares
Copy link
Contributor

@CodePanda9 try to replace occurrences of SparseDataFrame with a DataFrame with SparseArrays, that should work.

@MaxHalford
Copy link
Owner

Ok I've just released version 0.7.0. Unit tests are passing with pandas 1.0 so everything should be fine. I'll let @dialvarezs close this.

@dialvarezs
Copy link
Author

Is working for me as well, thank you very much @MaxHalford !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants