-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
xr.cov() and xr.corr() #4089
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
xr.cov() and xr.corr() #4089
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
37a0bd9
Added chunks='auto' option in dataset.py
AndrewILWilliams 45edda1
reverted accidental changes in dataset.chunk()
AndrewILWilliams 500e0b2
Added corr and cov to computation.py. Taken from r-beer:xarray/corr
AndrewILWilliams 29a1373
Added r-beer's tests to test_computation.py
AndrewILWilliams fdd5c5f
trying to fix github.com/pydata/xarray/pull/3550#discussion_r349935731
AndrewILWilliams aeabf2c
Removing drop=True from the `.where()` calls in `computation.py`+test.py
AndrewILWilliams 1489e0f
api.rst and whats-new.rst
AndrewILWilliams c121a3d
Updated `xarray/__init__.py` and added `broadcast` import to computation
AndrewILWilliams a40d95b
added DataArray import to corr, cov
AndrewILWilliams cd19e32
assert_allclose added to test_computation.py
AndrewILWilliams 2ddcb55
removed whitespace in test_dask...oops
AndrewILWilliams 2fce175
Added to init
AndrewILWilliams a0ef1c2
format changes
AndrewILWilliams 5d456b5
Fiddling around with cov/corr tests in `test_computation.py`
AndrewILWilliams 523e4fd
PEP8 changes
AndrewILWilliams c23cae6
pep
AndrewILWilliams 860babc
remove old todo and comments
AndrewILWilliams 33ded40
isort
AndrewILWilliams 2751b10
Added consistency check between corr() and cov(), ensure they give same
AndrewILWilliams 759c9f4
added `skipna=False` to `computation.py`. made consistency+autocov tests
AndrewILWilliams 1accabd
formatting
AndrewILWilliams 43a6ad7
Added numpy-based tests.
AndrewILWilliams 29bbcfb
format
AndrewILWilliams a5ce9b3
formatting again
AndrewILWilliams 5557da9
Update doc/whats-new.rst
AndrewILWilliams d395c27
refactored corr/cov so there is one internal method for calculating both
AndrewILWilliams 21351f5
formatting
AndrewILWilliams 87c9bea
updating docstrings and code suggestions from PR
AndrewILWilliams 0e4b682
paramterize ddof in tests
AndrewILWilliams b23eea8
removed extraneous test arrays
AndrewILWilliams 44c77f0
formatting + adding deterministic docstring
AndrewILWilliams 4bfc1f2
added test for TypeError
AndrewILWilliams c2ba27b
formatting
AndrewILWilliams bc58708
tidying up docstring
AndrewILWilliams 6bfb3cf
formatting and tidying up `_cov_corr()` so that the logic is more clear
AndrewILWilliams 672c87f
flake8 ...
AndrewILWilliams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ Top-level functions | |
full_like | ||
zeros_like | ||
ones_like | ||
cov | ||
corr | ||
dot | ||
polyval | ||
map_blocks | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.