-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
BUG: groupby.rank results do not scale to 100% for dense #20731
Comments
cc @rouzazari |
xref #15639 |
I am working on a fix. There are some existing tests do not expect the percentage ranks to scale to 1. We need to agree on what is expected results first. pandas/pandas/tests/groupby/test_rank.py Lines 200 to 204 in 791de95
#20781 #19481 @jreback @WillAyd |
Hmm didn't realize that's how things worked outside of GroupBy. If I'm not mistaken all of the values here should just be doubled |
Code Sample
Problem description
pd.groupby.rank
result does not scale to 100% when method is "dense".Expected Output
Output of
pd.show_versions()
pandas: 0.23.0.dev0+743.g448124c13
pytest: 3.3.2
pip: 9.0.1
setuptools: 38.4.0
Cython: 0.27.3
numpy: 1.14.0
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: 1.6.7
patsy: 0.5.0
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.4
feather: None
matplotlib: 2.1.2
openpyxl: 2.4.10
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.2
lxml: 4.1.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.1
pymysql: 0.7.11.None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: