| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
[skip cirrus]
|
|
|
|
|
|
| |
`numpy.percentile()`, and `numpy.quantile()`.
Closes #22714, #22544.
|
| |
|
| |
|
|
|
|
| |
This reverts commit 6b8d55e66e532d66e1701ad039b4cda306839b3f.
|
|
|
|
| |
This reverts commit 8cd6f4ca00b6e0da3833fc267d50067b2ddbc069.
|
|
|
|
|
|
|
| |
Fixed issue that occurs when trying to take the median of a list of masked arrays.
Added a check to see if the input is a list then converts to a masked array.
See issue #10757 for more information.
Co-authored-by: jsclose <jsclose@umich.edu>
|
|
|
|
|
|
| |
This enables any ufunc numpy operations that are called on a
MaskedArray to use the masked version of that function automatically
without needing to resort to np.ma.func() calls.
|
| |
|
|
|
|
|
|
| |
This enables any ufunc numpy operations that are called on a
MaskedArray to use the masked version of that function automatically
without needing to resort to np.ma.func() calls.
|
|
|
|
|
|
|
|
|
| |
(#21851)
The keepdims flag needs to be applied during the calculation of the sum of
the weights in np.average and np.ma.average. Not passing it causes weights
to broadcast incorrectly.
Fixes #21850
|
| |
|
|\
| |
| | |
ENH: add ndenumerate specialization for masked arrays
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
| |
`np.ma.masked_all` uses `np.empty` under the hood, so the parameter
description for shape in `masked_all` should be updated to match
that of `np.empty`.
Relevant issue: #21203
|
| |
|
|
|
| |
The first line of the docstring for `flatnotmasked_contiguous` was identical to that in `notmasked_contiguous` and refered to a given axis despite the fact that no axis is given as an argument.
|
|
|
|
| |
If a weight is nan it behaves erratically. See the tests added.
|
| |
|
|
|
| |
* Remove unnecessary imports and minor fixes
|
| |
|
|
|
|
|
| |
Closes #10438
Co-authored-by: mecopur <mecopur@outlook.com>
|
| |
|
|
|
|
|
| |
Space before colon, or missing colon in see-also,
typo in parameter names, casing in See Also.
|
|
|
|
|
|
|
|
|
|
|
|
| |
... or when the input isn't/cannot be a set. I left a few usages, e.g.
in random sampling, where "set" is reasonable as informal description of
an array as the order doesn't matter; however, for e.g. np.gradient the
order of the returned list is clearly important, so "set" is wrong.
Also some other minor doc edits noticed during the grepping: using
`shape` instead of `form` in `cov` is consistent with most other places;
the wording in `Polynomial.trim` now matches other methods on the same
class.
|
|
|
| |
Fix broken links in see also section of some ma functions.
|
|
|
| |
* DOC: Fix typos in versionchanged.
|
|
|
|
|
|
| |
* DOC: fixing malformed documents
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
|
|
| |
Add missing closing brackets, script to generate the list in the PR gh-16051.
|
|
|
|
|
|
|
| |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|
|
|
|
| |
This argument isn't used, and is confusing. (Small test added by
seberg)
|
| |
|
|
|
|
|
| |
Also removed the incorrect comment from the docstring of `numpy.ma.average`
about the imaginary part of `weights` being ignored.
|
|
|
|
| |
These ones just generated warnings, not build failures
|
| |
|
|
|
|
|
|
|
|
| |
* ported the refguide_check module from SciPy for usage
in NumPy docstring execution/ verification; added the
refguide_check run to Azure Mac OS CI
* adjusted NumPy docstrings such that refguide_check passes
|
| |
|
|
|
|
|
|
| |
Further progress in isolating matrix in preparation of its
deprecation. There is one place left with an explicit reference
to matrix (in MaskedArray.count), which is to be solved later.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Depending on the input, this would return:
* A single slice, if mask=nomask
* A list of slices, if mask is an array
* None, if mask is fully masked
The documented return value is a list, and all downstream callers of this
function end up having to correct for it not being one.
This affects the result of np.ma.notmasked_contiguous, which also did not
document these unusual return values.
|
|
|
|
|
|
| |
By not using this type of indexing, it becomes easier for subclasses to override indexing in a way that works correctly with numpy functions.
These locations were found by deprecating the behavior in question, which is deliberately not part of this commit
|
| |
|
| |
|
|
|
|
|
| |
Uses '_fromnxfunction_seq' just like 'vstack', 'hstack', etc.
Added release note to 1.15.0.
|
|
|
|
|
|
|
| |
This is the case for x in {int, bool, str, float, complex, object}.
Using the np.{x} version is deceptive as it suggests that there is a
difference. This change doesn't affect any external behaviour. The
`long` type is missing in python 3, so np.long is still useful
|
|
|
|
| |
Deliberately avoids tests, to prevent introducing a failure on old-style classes later.
|