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

CLN: Misc Python 2 references #26085

Merged
merged 3 commits into from
Apr 15, 2019
Merged

Conversation

mroeschke
Copy link
Member

The notable change here is removing the SIX license since I think we've removed any borrowed compatibility code.

except AttributeError:
# source compatibility with Py2.
na_value = {}
na_value = UserDict()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this just be a dict or OrderedDict?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From this comment in same file, using UserDict is intentional in order to treat dict as a scalar.

We currently store lists of UserDicts. Pandas has a few places
internally that specifically check for dicts, and does non-scalar things
in that case. We want the dictionaries to be treated as scalars, so we
hack around pandas by using UserDicts.

@codecov
Copy link

codecov bot commented Apr 15, 2019

Codecov Report

Merging #26085 into master will decrease coverage by 0.12%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26085      +/-   ##
==========================================
- Coverage   40.88%   40.76%   -0.13%     
==========================================
  Files         175      175              
  Lines       52443    52434       -9     
==========================================
- Hits        21443    21373      -70     
- Misses      31000    31061      +61
Flag Coverage Δ
#single 40.76% <0%> (-0.13%) ⬇️
Impacted Files Coverage Δ
pandas/core/dtypes/cast.py 49% <ø> (-0.34%) ⬇️
pandas/core/indexes/frozen.py 61.84% <ø> (ø) ⬆️
pandas/core/series.py 45.66% <ø> (-0.11%) ⬇️
pandas/core/panel.py 16.34% <ø> (ø) ⬆️
pandas/io/formats/printing.py 66.84% <ø> (ø) ⬆️
pandas/core/generic.py 37.84% <ø> (ø) ⬆️
pandas/core/indexes/range.py 52.75% <ø> (ø) ⬆️
pandas/io/parsers.py 25.86% <ø> (+0.03%) ⬆️
pandas/core/indexes/base.py 55.57% <ø> (ø) ⬆️
pandas/core/base.py 34.08% <0%> (+0.22%) ⬆️
... and 12 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 4e7e7f0...e3661e4. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 15, 2019

Codecov Report

Merging #26085 into master will increase coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26085      +/-   ##
==========================================
+ Coverage   91.95%   91.95%   +<.01%     
==========================================
  Files         175      175              
  Lines       52443    52433      -10     
==========================================
- Hits        48224    48217       -7     
+ Misses       4219     4216       -3
Flag Coverage Δ
#multiple 90.51% <75%> (ø) ⬆️
#single 40.75% <0%> (-0.14%) ⬇️
Impacted Files Coverage Δ
pandas/core/dtypes/cast.py 91.36% <ø> (ø) ⬆️
pandas/core/indexes/frozen.py 92.1% <ø> (ø) ⬆️
pandas/core/series.py 93.67% <ø> (ø) ⬆️
pandas/core/panel.py 35.53% <ø> (ø) ⬆️
pandas/io/formats/printing.py 85.56% <ø> (ø) ⬆️
pandas/core/generic.py 93.54% <ø> (ø) ⬆️
pandas/core/indexes/range.py 97.97% <ø> (ø) ⬆️
pandas/io/parsers.py 95.84% <ø> (+0.05%) ⬆️
pandas/core/indexes/base.py 96.99% <ø> (ø) ⬆️
pandas/io/clipboard/clipboards.py 18.98% <0%> (+0.46%) ⬆️
... and 5 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 4e7e7f0...e3661e4. Read the comment docs.

@jreback jreback added this to the 0.25.0 milestone Apr 15, 2019
@jreback jreback merged commit 81f5c01 into pandas-dev:master Apr 15, 2019
@jreback
Copy link
Contributor

jreback commented Apr 15, 2019

thanks @mroeschke

@mroeschke mroeschke deleted the misc_py2_cln branch April 15, 2019 17:03
yhaque1213 pushed a commit to yhaque1213/pandas that referenced this pull request Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants