Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
cov() and corr() - finalization #3550
cov() and corr() - finalization #3550
Changes from 36 commits
ec58dfa
ec1dd72
184e4ab
ef1e25c
fe3fe06
d57eb7c
13a3925
e9a8869
617fd43
29b3e43
27980c8
5e4f002
28b1229
98a5f82
ea8f6eb
a4d0446
5a4b97c
1a6d939
93dfeeb
9a04ae3
363e238
48e4ad4
ac46a43
bc33c99
60831ff
3945ba1
bfe5b2b
24e9484
8f2a118
e09a607
2055962
a1063b5
b694b5f
b54487e
5e7b32d
bc0b100
4ac0320
3a7120c
ac00070
52ae54a
4f09263
4ab4af4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine as preparation for future PR right?
If there is an easy way to drop the drop, I can implement it of course!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't
drop=True
is needed here at all, and I think it actually introduces a bug. In particular, consider the following case:This doesn't look right to me at all. It has the wrong shape, size 1 instead of size 2, and also somehow the correlation is greater than 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not demean in place, and avoid additional copies of the full arrays? Aren't
da_a
andda_b
already copies?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have thought that we should be testing that we get a similar result from pandas'
cov
and xarraycov
without much preparation. Can you help me understand why we need to drop values here? What's the test case that fails when we don't have these lines?