Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
TypeError: rank() got an unexpected keyword argument 'numeric_only' #11759
Comments
|
you are trying to rank on a string column, which is not supported. But should give a better message I would think.
|
jreback
added Groupby API Design Error Reporting Difficulty Intermediate Effort Low
labels
Dec 4, 2015
jreback
added this to the
0.18.0
milestone
Dec 4, 2015
|
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 |
This was referenced Dec 28, 2015
kuanche
commented
Dec 30, 2015
|
Hi guys! |
|
What are you trying to do, exactly? |
jreback
modified the milestone: Next Major Release, 0.18.0
Feb 8, 2016
|
Following pull request #11924, we now get an empty dataframe:
|
nbonnotte
added a commit
to nbonnotte/pandas
that referenced
this issue
Jul 24, 2016
|
|
nbonnotte |
3b7831a
|
|
these seem to be working in currently master
|
nbonnotte commentedDec 4, 2015
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?