DOC: Correct more ndarray defaults #29402
Merged
+11
−11
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.
Follow-up to https://github.com/numpy/numpy/pull/29387/files
These are the other methods which have a
np._NoDefault
default, and all the arguments just get forwarded to the corresponding top-level functionall:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2489 to 2494 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 2587 to 2588 in 8cf1f7d
any:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2481 to 2486 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 2475 to 2476 in 8cf1f7d
clip:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2584 to 2589 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 2239 to 2241 in 8cf1f7d
max:
numpy/numpy/_core/src/multiarray/methods.c
Lines 349 to 354 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 3050 to 3053 in 8cf1f7d
min:
numpy/numpy/_core/src/multiarray/methods.c
Lines 356 to 361 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 3188 to 3190 in 8cf1f7d
mean:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2384 to 2389 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 3738 to 3740 in 8cf1f7d
prod:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2421 to 2426 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 3326 to 3328 in 8cf1f7d
std:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2496 to 2501 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 3872 to 3874 in 8cf1f7d
sum:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2391 to 2396 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 2336 to 2338 in 8cf1f7d
var:
numpy/numpy/_core/src/multiarray/methods.c
Lines 2503 to 2508 in b5d6eb4
numpy/numpy/_core/fromnumeric.py
Lines 4076 to 4078 in 8cf1f7d