-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
ENH: add dtype option to numpy.lib.function_base.cov and corrcoef #17456
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
Conversation
Co-authored-by: Eric Wieser <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
Co-authored-by: Eric Wieser <[email protected]>
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 generally looks good, thanks for the contribution. Two more things:
- The
dtype
argument needs documenting, and should include.. versionadded:: 1.20.0
- We should maybe add a release note in the
upcoming_changes
folder.
Sure, I can certainly do that. I left it out initially to see whether there was interest in actually merging the PR. Thank you for reviewing so quickly @eric-wieser ! |
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 probably doesn't need to hit the mailing list, but I'll leave it for another maintainer to give a second opinion on. Thanks for the rapid iteration.
Co-authored-by: Eric Wieser <[email protected]>
Happy to help! Its a bit silly maybe but if its no trouble, could you add the label "hacktoberfest-accepted" to the PR? They changed the rules to prevent spam. |
@lschwetlick, there's no need for me to do that according to your link, my approval above is enough. What does matter is if the repo has a |
Yup, I get it. I mainly liked the gamification aspect as a motivator. Good use of my time anyway :) |
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.
LGTM as well, seems like a nice improvement. Thanks @lschwetlick !
dc1b5e5
to
3738fae
Compare
I've updated the docstring wording based on @seberg 's comment (and undid my test changes since I was in there). I'll merge once the CI's done - I don't want to let wording block this nice new feature (thanks @lschwetlick !) We can always revisit the docs later to improve the wording or add more explanation if needed. |
Added the hacktoberfest-accepted label, since I think @mattip said that was preferable to the repo topic. Apologies if it's too late to make a difference! |
Nice, thank you @eric-wieser ! |
I tried to implement the changes suggested in Issue #17395, by adding a dtype keyword to the cov and corrcoef functions in numpy/lib/function_base.py. I also wrote tests for the changes.
Closes #17395