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

[error] dataframe.pivot() takes 1 positional argument but 4 were given #60

Closed
cthyshn opened this issue Jul 10, 2023 · 7 comments
Closed
Labels

Comments

@cthyshn
Copy link

cthyshn commented Jul 10, 2023

hello, hope my message finds you well. i am trying to run focus finemap on one population, but i am getting this error and i do not know how to get around it:

image

this is what I have given as input:

image

i would really appreciate any advice, thank you so much!

@cthyshn cthyshn changed the title dataframe.pivot issue [error] dataframe.pivot() takes 1 positional argument but 4 were given Jul 10, 2023
@quattro
Copy link
Contributor

quattro commented Jul 10, 2023

Hi @cthyshn can you please report what version of pandas you are using?

@quattro quattro added the bug label Jul 10, 2023
@cthyshn
Copy link
Author

cthyshn commented Jul 11, 2023

hello @quattro, it is version 1.4.3!

@quattro
Copy link
Contributor

quattro commented Jul 11, 2023

Thanks. Can you run pip install -U pandas and then retry?

@xiechengyong123
Copy link

Hi, I'm getting a similar error on mine, my pandas version is 2.0.3.
image

@Xinyu-Sun
Copy link

Hello,

I also experienced the same error in FOCUS v0.802. I tried a few version of pandas, and noticed pandas 1.5.1 does not trigger the error, but it still throws a deprecated warning.

I also have numpy 1.23.1. I hope the information can be useful to others.

Thank you!

@quattro
Copy link
Contributor

quattro commented Aug 4, 2023

Thanks everyone. We'll look into updating the code to avoid deprecated func calls to pandas API

@quattro
Copy link
Contributor

quattro commented Aug 22, 2023

The latest version in github.com/mancusolab/ma-focus should fix this issue.

@quattro quattro closed this as completed Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants