-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
ENH: Let initialisation from dicts use insertion order for python >= 3.6 (part II) #19859
Conversation
@jreback : Do we need a deprecation cycle on this given that it's an API change? |
the error message for travis-ci is:
So, nothing to do with my PR. Should I run again, or is there an issue with travis? |
Wrt. deprecation cycle, IMO this change must be very clearly documented, but IMO we mirror Python itself, and if Python can do this change without deprecation cycles, pandas can too... OTOH, I could add a option to pd.options, where users can switch back to the old behaviour. That option could then be marked for deprecation. So people can revert back manually, but then be told that the option to revert will be removed in the future? |
this is just reordering tests there is no actual change here. lgtm. ping on green. |
I restarted the builds that timed out.
The difference was that dictionary order was previously unspecified, whereas we explicitly sorted. But we can discuss if / how to deprecate things elsewhere. |
Codecov Report
@@ Coverage Diff @@
## master #19859 +/- ##
==========================================
+ Coverage 91.58% 91.67% +0.08%
==========================================
Files 150 150
Lines 48908 48946 +38
==========================================
+ Hits 44793 44870 +77
+ Misses 4115 4076 -39
Continue to review full report at Codecov.
|
Green. Thanks for restarting @TomAugspurger. |
Should we add a |
@gfyoung , not for this PR (no functional changes here), but the next PR, where changes will be made, a whatsnew should be added. |
thanks @topper-123 |
git diff upstream/master -u -- "*.py" | flake8 --diff
This PR is the second part of the preparation for allowing initialisation using insertion order for python>=3.6. See cross-referenced issues for details.
After this PR all tests will pass independent of dict initialisation rule, and then core/frame.py and core/series.py will be changed in the next PR to use insertion order for python>=3.6.