-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Inner dictionaries are not displaying in insertion order #25911
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
Could you test this on the latest version of pandas (0.24.2) and master? I suspect this check is too strict and should be checking for >PY36 Line 230 in 31b4019
|
@mroeschke I tested and this also exists on master. I believe that PY36 check also checks for anything above Python 3.6 from what I remember. I found what causes this issue and will be making a PR later tonight with a fix for this. One of the functions that gets called has a parameter to sort the Index, this is what is causing the order to be sorted here. |
Discussed this in associated PR but this isn't something we want to make guarantees about. Closing as won't fix / no change |
Why is the community happy to keep a bug in the code? The logic in the PR is incorrect. From a python-dev message by GvR: "Dict keeps insertion order" |
Code Sample
Problem description
I am using a recent download of Anaconda with Python 3.7.1 & pandas 0.23.4
The pandas doc says:
I instantiate a pandas DataFrame from a dict with no index passed, and print outputs:
Expected Output
Output of `0.23.4``
The text was updated successfully, but these errors were encountered: