Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
rank incorrectly orders ordered categories #15420
Comments
jorisvandenbossche
added Bug Categorical
labels
Feb 16, 2017
|
@dfd Thanks for the report! That is indeed clearly a bug.
I think this should be a rather easy fix (in the |
jorisvandenbossche
added Difficulty Novice Effort Low
labels
Feb 16, 2017
jorisvandenbossche
added this to the
Next Major Release
milestone
Feb 16, 2017
jreback
modified the milestone: 0.20.0, Next Major Release
Feb 24, 2017
jreback
closed this
in 3fe85af
Feb 24, 2017
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
+ AnkurDedania |
28f8c8f
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dfd commentedFeb 16, 2017
Code Sample, a copy-pastable example if possible
Problem description
rank seems to be ignoring the order of ordered categories.
Expected Output
Output of
pd.show_versions()pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 34.2.0
Cython: None
numpy: 1.12.0
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None