Skip to content

selected numeric data before correlation #18651

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

Merged
merged 2 commits into from
Dec 6, 2017
Merged

selected numeric data before correlation #18651

merged 2 commits into from
Dec 6, 2017

Conversation

tdpetrou
Copy link
Contributor

@tdpetrou tdpetrou commented Dec 6, 2017

I select the numeric data before the calculation happens with a Series.

No whatsnew entry yet.

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. whatsnew for 0.21.1 is good. ping on green.

@@ -240,6 +240,15 @@ def test_corrwith_matches_corrcoef(self):
tm.assert_almost_equal(c1, c2)
assert c1 < 1

def test_corrwith_mixed_dtypes(self):
df = pd.DataFrame({'a': [1, 4, 3, 2], 'b': [4, 6, 7, 3],
Copy link
Contributor

Choose a reason for hiding this comment

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

add the issue number as a comment

@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Numeric Operations Arithmetic, Comparison, and Logical operations labels Dec 6, 2017
@jreback
Copy link
Contributor

jreback commented Dec 6, 2017

actually do this for 0.22

@codecov
Copy link

codecov bot commented Dec 6, 2017

Codecov Report

Merging #18651 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18651      +/-   ##
==========================================
- Coverage    91.6%   91.57%   -0.03%     
==========================================
  Files         153      153              
  Lines       51250    51221      -29     
==========================================
- Hits        46947    46908      -39     
- Misses       4303     4313      +10
Flag Coverage Δ
#multiple 89.44% <100%> (-0.01%) ⬇️
#single 40.67% <0%> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/core/frame.py 97.81% <100%> (-0.1%) ⬇️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/stats/moments.py 70.81% <0%> (-0.39%) ⬇️
pandas/core/window.py 96.31% <0%> (-0.07%) ⬇️
pandas/tseries/offsets.py 96.86% <0%> (-0.04%) ⬇️

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 6b6cfb8...dcc66ea. Read the comment docs.

@jreback jreback added this to the 0.22.0 milestone Dec 6, 2017
@jreback jreback merged commit 89e81bf into pandas-dev:master Dec 6, 2017
@jreback
Copy link
Contributor

jreback commented Dec 6, 2017

thanks!

@tdpetrou tdpetrou deleted the corr-with-numeric-series branch December 6, 2017 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Make corrwith ignore string columns when finding correlation with a Series
2 participants