| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also, the closest-observation did not correctly support multiple
quantiles calculated at the same time (broadcasting error).
|
| |_|/ / /
|/| | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
For method 7 of H&F, using `(n - 1) * quantiles`
instead of the usual method gives a more accurate
result.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: Speedup np.quantile.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Avoiding the unnecessary calls to moveaxis() speed up
`np.quantile(x, .5)` (`x = np.random.rand(1000)`) by ~10% (although
there's a lot of variability) for me.
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
`"inclusive"`
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
On some platforms float128 and complex256 do not exist.
Using (c)longdouble aliases should work on all platforms.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Also added unit test for it.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Also removed unused imports
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- some changes were unrelated to the PR and have been reverted, including, renaming and moving the logic around.
- Also renamed _quantile_ureduce_func to its original name
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Hopefully fix the docstrings of percentile, nanpercentile,
quantile, and nanquantile so that CircleCI passes.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- Added the missing linear interpolation methods.
- Updated the existing unit tests.
- Added pytest.mark.xfail for boolean arrays
See
- https://github.com/numpy/numpy/pull/19857#issuecomment-919258693
- https://github.com/numpy/numpy/issues/19154
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
From my regular expression foo, those are the only 9 case whereas there
are about ~2000 usage that do not have spaces.
While this is ok with docutils/sphinx, it does not seem to be
documented, and that means that other parsers will see that as comments,
leading to for example improper syntax highlighting.
This make it also a tiny bit harder to develop alternative rst parsers.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Improves exception message when inputs have different shapes.
Closes gh-20050
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|\ \ \ \ |
|
| |\ \ \ \
| | | | | |
| | | | | | |
MAINT: Remove unused imports and remove duplicated tests
|
| | | | | | |
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When `insert` is given a single out-of-bounds index in a
list, e.g.
np.insert([0, 1, 2], [99], [3, 4]) # 99 is out of bounds
a TypeError was being raised because of a bug in the formatting
of the message.
Before this change, the error is
TypeError: %i format: a number is required, not list
After, we get the expected
IndexError: index [99] is out of bounds for axis 0 with size 3
|
| | |_|/
| |/| |
| | | |
| | | | |
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| |\ \ \
| | | | |
| | | | | |
MAINT: LGTM.com recommendations
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | | |
Import of 'histogram' is not used.
Import of 'histogramdd' is not used.
Import of 'textwrap' is not used.
|
| |\ \ \
| | | | |
| | | | | |
DOC:add an example to show flag writeable cleared upon copy related to #20035
|
| | | | | |
|
| | |/ / |
|
| |\ \ \
| | | | |
| | | | | |
DOC: Remove references to Python 2
|
| | |/ / |
|
| |\ \ \
| | | | |
| | | | | |
ENH: Add annotations for `np.lib.histograms`
|
| | |/ / |
|
| |/ / |
|
| | | |
|
| |\ \
| | | |
| | | | |
ENH: Add annotations for `np.lib.function_base` part 2/3
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* `interp`
* `cov`
* `corrcoef`
* `blackman`
* `bartlett`
* `hanning`
* `hamming`
* `i0`
* `kaiser`
* `sinc`
* `msort`
* `median`
|
| |\ \ \
| | |/ /
| |/| | |
ENH: Add missing parameters to the `nan<x>` functions
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
counterparts
* nanmin: initial & where
* nanmax: initial & where
* nanargmin: keepdims & out
* nanargmax: keepdims & out
* nansum: initial & where
* nanprod: initial & where
* nanmean: where
* nanvar: where
* nanstd: where
|
| |\ \ \
| | | | |
| | | | | |
BUG: Fix the `lib.function_base` window functions ignoring extended precision float dtypes
|
| | | | | |
|
| | | | | |
|
| | |/ /
| | | |
| | | |
| | | | |
precision float dtypes
|
| | | |
| | | |
| | | |
| | | | |
`np.place` uses the `np.core.multiarray._insert` function under the hood, not to be confused with `np.insert` (which does accept slices)
|