Skip to content
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

Merged
merged 1 commit into from
Feb 24, 2018

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 commented Feb 23, 2018

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.

@gfyoung
Copy link
Member

gfyoung commented Feb 23, 2018

@jreback : Do we need a deprecation cycle on this given that it's an API change?

@topper-123
Copy link
Contributor Author

the error message for travis-ci is:

The job exceeded the maximum time limit for jobs, and has been terminated.

So, nothing to do with my PR. Should I run again, or is there an issue with travis?

@topper-123
Copy link
Contributor Author

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?

@jreback
Copy link
Contributor

jreback commented Feb 23, 2018

this is just reordering tests there is no actual change here.

lgtm. ping on green.

@TomAugspurger
Copy link
Contributor

I restarted the builds that timed out.

we mirror Python itself, and if Python can do this change without deprecation cycles, pandas can too...

The difference was that dictionary order was previously unspecified, whereas we explicitly sorted.

But we can discuss if / how to deprecate things elsewhere.

@codecov
Copy link

codecov bot commented Feb 23, 2018

Codecov Report

Merging #19859 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Flag Coverage Δ
#multiple 90.05% <ø> (+0.08%) ⬆️
#single 41.81% <ø> (+0.03%) ⬆️
Impacted Files Coverage Δ
pandas/core/dtypes/dtypes.py 95.9% <0%> (-0.19%) ⬇️
pandas/core/indexes/period.py 92.7% <0%> (-0.18%) ⬇️
pandas/core/indexes/datetimes.py 95.47% <0%> (-0.09%) ⬇️
pandas/core/series.py 94.41% <0%> (-0.05%) ⬇️
pandas/core/indexes/range.py 95.7% <0%> (-0.04%) ⬇️
pandas/core/frame.py 97.23% <0%> (-0.01%) ⬇️
pandas/core/dtypes/generic.py 100% <0%> (ø) ⬆️
pandas/core/generic.py 95.93% <0%> (ø) ⬆️
pandas/core/indexes/timedeltas.py 90.63% <0%> (ø) ⬆️
pandas/core/indexing.py 93.02% <0%> (ø) ⬆️
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 572476f...0d1622a. Read the comment docs.

@topper-123
Copy link
Contributor Author

Green.

Thanks for restarting @TomAugspurger.

@gfyoung
Copy link
Member

gfyoung commented Feb 23, 2018

Should we add a whatsnew for this change? Otherwise, LGTM.

@topper-123
Copy link
Contributor Author

@gfyoung , not for this PR (no functional changes here), but the next PR, where changes will be made, a whatsnew should be added.

@jreback jreback added this to the 0.23.0 milestone Feb 24, 2018
@jreback jreback merged commit fdc0f25 into pandas-dev:master Feb 24, 2018
@jreback
Copy link
Contributor

jreback commented Feb 24, 2018

thanks @topper-123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants