-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: sorting with large float and multiple columns incorrect #14922
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
pls show a copy-pastable example. |
yes, pls update the top message. idea is that the repro is just a copy-paste |
also pls try to make a more useful than 'not working' (e.g. what is the problem) |
Ok now ? I was in a hurry... |
ok, confirmed on master. ty. if you'd like to digin and see what's happening would be great. |
sort_values
not working as exepected
4 tasks
uweschmitt
added a commit
to uweschmitt/pandas
that referenced
this issue
Dec 21, 2016
ShaharBental
pushed a commit
to ShaharBental/pandas
that referenced
this issue
Dec 26, 2016
closes pandas-dev#14922 Having the `int` equivalent of `NaT` in an `int64` column caused wrong sorting because this special value was considered as "missing value". Author: Uwe <[email protected]> Closes pandas-dev#14944 from uweschmitt/fix-gh-14922 and squashes the following commits: c244438 [Uwe] further cleanup tests 4f28026 [Uwe] fixed typo in whatsnew/v0.20.0.txt 60cca5d [Uwe] add fix of GH14922 to release notes for 0.20.0 04dcbe8 [Uwe] further test cleanup 21e610c [Uwe] extended tests + minor cleanup 358a31e [Uwe] Merge branch 'fix-pandas-devgh-14922' of github.com:uweschmitt/pandas into fix-pandas-devgh-14922 03699c6 [Uwe] Fix GH 14922 1afdbb8 [Uwe] Fix GH 14922
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample, a copy-pastable example if possible
produces
As you can see the first two calls (only sorting by
int
or byfloat
) sort correctly whereasdf.sort_values(["int", "float"])
does not seem to sort at all. Row with index1
should appear first, and then row with index0
.Using
pandas 0.17.0
I get the correct result:This issue was discussed at http://stackoverflow.com/questions/41225286/sort-by-broken-in-pandas-0-18-0
Output of
pd.show_versions()
INSTALLED VERSIONS [1/193]
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.19.1
nose: None
pip: 7.1.2
setuptools: 18.2
Cython: None
numpy: 1.10.4
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
The text was updated successfully, but these errors were encountered: