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: Remove u and u_safe from pandas.compat #25852

Merged
merged 1 commit into from
Mar 24, 2019

Conversation

jschendel
Copy link
Member

Another incremental step in removing Python 2. Only non-standard changes were to pandas/tests/test_strings.py where I deleted a bunch of code, as removing u resulted in duplicate test scenarios.

@jschendel jschendel added this to the 0.25.0 milestone Mar 23, 2019
@jreback
Copy link
Contributor

jreback commented Mar 23, 2019

can we remove unicode strings themselves if they e.g. u'....'?

@jschendel
Copy link
Member Author

can we remove unicode strings themselves if they e.g. u'....'?

Yeah, I was thinking that seemed better suited for a separate PR since, after a quick check, there looks to be 1000+ instances of it, and I didn't want to jam too much into a single PR. Can do it here if you'd prefer.

@codecov
Copy link

codecov bot commented Mar 23, 2019

Codecov Report

Merging #25852 into master will increase coverage by 0.01%.
The diff coverage is 87.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #25852      +/-   ##
==========================================
+ Coverage   91.45%   91.47%   +0.01%     
==========================================
  Files         172      172              
  Lines       52892    52870      -22     
==========================================
- Hits        48373    48362      -11     
+ Misses       4519     4508      -11
Flag Coverage Δ
#multiple 90.03% <80%> (+0.01%) ⬆️
#single 41.82% <42.85%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/compat/__init__.py 59.82% <ø> (+1.07%) ⬆️
pandas/core/panel.py 35.62% <0%> (-0.1%) ⬇️
pandas/util/testing.py 89.3% <100%> (ø) ⬆️
pandas/core/frame.py 96.79% <100%> (ø) ⬆️
pandas/io/formats/latex.py 100% <100%> (ø) ⬆️
pandas/compat/pickle_compat.py 75.6% <100%> (ø) ⬆️
pandas/core/strings.py 98.59% <100%> (ø) ⬆️
pandas/io/json/json.py 93.22% <100%> (ø) ⬆️
pandas/core/indexes/base.py 96.57% <100%> (ø) ⬆️
pandas/core/arrays/categorical.py 95.96% <100%> (ø) ⬆️
... 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 6e0f9a9...8c68c28. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Mar 23, 2019

Codecov Report

Merging #25852 into master will increase coverage by 0.01%.
The diff coverage is 87.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #25852      +/-   ##
==========================================
+ Coverage   91.45%   91.47%   +0.01%     
==========================================
  Files         172      172              
  Lines       52892    52870      -22     
==========================================
- Hits        48373    48362      -11     
+ Misses       4519     4508      -11
Flag Coverage Δ
#multiple 90.03% <80%> (+0.01%) ⬆️
#single 41.82% <42.85%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/compat/__init__.py 59.82% <ø> (+1.07%) ⬆️
pandas/core/panel.py 35.62% <0%> (-0.1%) ⬇️
pandas/util/testing.py 89.3% <100%> (ø) ⬆️
pandas/core/frame.py 96.79% <100%> (ø) ⬆️
pandas/io/formats/latex.py 100% <100%> (ø) ⬆️
pandas/compat/pickle_compat.py 75.6% <100%> (ø) ⬆️
pandas/core/strings.py 98.59% <100%> (ø) ⬆️
pandas/io/json/json.py 93.22% <100%> (ø) ⬆️
pandas/core/indexes/base.py 96.57% <100%> (ø) ⬆️
pandas/core/arrays/categorical.py 95.96% <100%> (ø) ⬆️
... 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 6e0f9a9...8c68c28. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Mar 23, 2019

separate is good!

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm - thanks @jschendel that was a lot!

.format(name=type(self.frame).__name__,
col=pprint_thing(frame.columns),
Copy link
Member

Choose a reason for hiding this comment

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

surprise this wasn't a lint error before

@jreback jreback merged commit 0f5a7e3 into pandas-dev:master Mar 24, 2019
@jreback
Copy link
Contributor

jreback commented Mar 24, 2019

thanks @jschendel keep em coming!

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

Successfully merging this pull request may close these issues.

3 participants