| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | | |
All of this code was already correct, this just tidies it a little
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* DOC, MAINT: Misc. typo fixes
Found via `codespell`
|
| | | | |
|
| |/ / |
|
| | |
| | |
| | | |
Fixes #13598
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Increment stacklevel for warnings to account for NEP-18 overrides
For NumPy functions that make use of `__array_function__`, the appropriate the
stack level for warnings should generally be increased by 1 to account for
the override function defined in numpy.core.overrides.
Fixes GH-13329
* Update numpy/lib/type_check.py
Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
|
| |\ \ |
|
| | |\ \
| | | | |
| | | | | |
DOC: Mention that expand_dims returns a view
|
| | | | | |
|
| | | | | |
|
| | |\ \ \
| | | | | |
| | | | | | |
ENH: Allow broadcast to be called with zero arguments
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Follows on from gh-6905 which reduced the limit from 2 to 1. Let's go all the way to zero.
Just as for `broadcast(broadcast(a), b)` is interpreted as `broadcast(a, b)` , this change interprets
`broadcast(broadcast(), a)` as `broadcast(a)`.
|
| | | | | | |
|
| | | | | | |
|
| | |\ \ \ \
| | | | |/ /
| | | |/| |
| | | | | | |
fix-genfromtxt
|
| | | |\ \ \
| | | | | | |
| | | | | | | |
API: Make MaskedArray.mask return a view, rather than the underlying mask
|
| | | | |/ /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This prevents consumers from reshaping the mask in place, which breaks things
As a result, `x.mask is x.mask` returns `False`, but this was already true of `x.data is x.data`.
May also be related to gh-10270
|
| | | |\ \ \
| | | | | | |
| | | | | | | |
BUG: Handle subarrays in descr_to_dtype
|
| | | | | | | |
|
| | | | | | | |
|
| | | | |/ / |
|
| | | |\ \ \
| | | | | | |
| | | | | | | |
ENH: Add 'bitorder' keyword to packbits, unpackbits
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | |\ \ \ \
| | | | | | | |
| | | | | | | | |
DOC: Show the default value of deletechars in the signature of genfromtxt
|
| | | | | | | | |
|
| | | |\ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
TEST: add duration report to tests, speed up two outliers
|
| | | | | | | | | |
|
| | | |\ \ \ \ \ \
| | | | |_|_|/ / /
| | | |/| | | | | |
BUG: Always return views from structured_to_unstructured when possible
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Also applies to unstructured_to_structured
While producing correct resutls, the test added in this commit would previously make an unecessary copy, causing the assertion to fail.
The cause was `astype` was being asked to convert from a subarray of shape `(x, y)` to one of `(x*y,)`, which it cannot do without making a copy.
This changes the approach used to skip the step of flattening subarrays to 1d
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
bins only accepts lowercase strings, but the notes are capitalized.
|
| | | |\ \ \ \ \ \
| | | | |_|/ / / /
| | | |/| | | | | |
ENH: Added clearer exception for np.diff on 0-dimensional ndarray
|
| | | | | | | | | |
|
| | | | |_|_|/ /
| | | |/| | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
The PR is: gh13439
Closes gh-9538
|
| | | | | | | | |
|
| | | |_|_|/ /
| | |/| | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This version encodes the dtype as utf8 instead of latin1.
Unfortunately we need to create a new version to make this change, because we did not limit ourselves to ASCII in versions 1 and 2.
Fixes gh-7391
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | | |
This works towards adding a third format that supports utf8
|
| |\ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Preserve types of empty arrays in ix_ when known
|
| | |\ \ \ \ \ |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Fixes regression in #5805
|
| |\ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
MAINT: Improve efficiency of pad by avoiding use of apply_along_axis
|
| | | |_|_|_|_|/
| | |/| | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
pad assumed that apply_along_axis was modifying the padded array in-place.
In this case, it is more efficient to avoid the overhead of creating an output buffer and just
directly iterate the inplace operations instead using transpose and nditer instead.
MAINT: use moveaxis in place of transpose to improve clarity
|
| |\ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
BUG: (py2 only) fix unicode support for savetxt fmt string
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
By now, all that is needed is to also allow unicode strings to
pass through. Adds a test for the support which already succeeds
on python3.
Closes gh-4053 (replaces the old PR)
|
| |\ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
ENH: Add support for Fraction to percentile and quantile
|
| | | |_|_|_|/ / /
| | |/| | | | | |
| | | | | | | | |
| | | | | | | | | |
With true division available, using `.0` to convert integers to floats offers no value, and harms compatibility with precise rational types.
|
| |\ \ \ \ \ \ \ \
| | |/ / / / / / /
| | | | | | | | /
| | |_|_|_|_|_|/
| |/| | | | | | |
|