Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork11.9k
ENH: add mean keyword to std and var#24126
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
mattip merged 24 commits intonumpy:mainfromsoundappraisal:ENH_Add_mean_keyword_to_std_and_varJul 7, 2023
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
24 commits Select commitHold shift + click to select a range
5d07178 Add mean keyword to std and var functions.
RonaldAJ3ba2ccc Add releae note for mean keyword to std and var functions.
RonaldAJd52c0b7 Update release note with PR number
RonaldAJ3c9e4d3 Address lint issue.
RonaldAJf78e793 Align nan signatures with new signatures.
RonaldAJ3bb28dd Address lint issue.
RonaldAJ13161f1 Correct version numbers on keywords.
RonaldAJd93630d Put backticks on keyword argument in documentation string.
RonaldAJ6e966a1 Cleanuup assert statements in tests
RonaldAJfe32fd1 Move comparison of in and out arrays closer to the function call.
RonaldAJa15af41 Remove clutter from example code in release note.
RonaldAJ1a10e70 Add test for nanstd and fix error in nanvar
RonaldAJef7484a haqndle "mean" keyword for var and std on MaskedArrays.
RonaldAJccc5258 Address lint issues.
RonaldAJe150370 update the dispatchers according to suggestions by Marten van Kerkwijk:
RonaldAJbbdeed4 Move and adjust example from release note to doc-strings. Reflow doc-…
RonaldAJ201034a Improve doc-string. Shorter sentences and add type and label mean arg…
RonaldAJ71998c8 Remove some of these pesky trailing white spaces
RonaldAJ0f553ff Make extra white lines more consistent.
RonaldAJaa861b3 Make sure code examples execute without Jupyter magic.
RonaldAJ020257a Fold lines to pass linter.
RonaldAJf8d8399 Update doc-string nanstd and nanvar.
RonaldAJ4f5cc4c Try to satisfy linter and apple requirements at the same time. Making…
RonaldAJb891190 Make doctest skip resource dependent output
RonaldAJFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Put backticks on keyword argument in documentation string.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitd93630da8fca9ad70a6e0530cc6d041f9d388388
There are no files selected for viewing
4 changes: 2 additions & 2 deletionsnumpy/core/fromnumeric.py
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 |
|---|---|---|
| @@ -3562,7 +3562,7 @@ def std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue, *, | ||
| .. versionadded:: 1.20.0 | ||
RonaldAJ marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| mean : optionally provide the mean to prevent recalculation, the mean | ||
RonaldAJ marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| should have a shape as if it was calculated with``keepdims = True`` | ||
| and the axis the same as used in the call to this std function. | ||
| For masked arrays this argument is ignored. | ||
| @@ -3714,7 +3714,7 @@ def var(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue, *, | ||
| .. versionadded:: 1.20.0 | ||
| mean : optionally provide the mean to prevent recalculation, the mean | ||
| should have a shape as if it was calculated with``keepdims = True`` | ||
| and the axis the same as used in the call to this var function. | ||
| For masked arrays this argument is ignored. | ||
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.