-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TypeError: rank() got an unexpected keyword argument 'numeric_only' #11759
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
Comments
you are trying to rank on a string column, which is not supported. But should give a better message I would think.
|
That's weird, because
I'm looking into it. |
I think I understand what is going on.
With With There is a design flaw here:
I'll think about a solution that is as minimalist as possible, solves the initial issue, and if possible addresses this flaw. If I can't, I'll just add a hack somewhere to solve the initial issue. |
the right way to fix this is to move You then accept Further need to add you can raise if |
So now,
Indeed, the first call to I'm going to prevent the call to |
Hi guys! |
What are you trying to do, exactly? |
Following pull request #11924, we now get an empty dataframe:
|
these seem to be working in currently master
|
closing in favor of #19560 which will report the proper error message. |
I'm trying to obtain what I would get with a
row_number()
in SQL...Notice that if I replace the value in the
'c'
column with the string'1'
, then evendf.set_index('a').groupby('b').rank(method='first')
fails.Am I doing something wrong?
The text was updated successfully, but these errors were encountered: