| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
In numpy.gradient, convert integer array inputs to float64 to avoid
unwanted modular arithmetic.
Closes gh-15207.
|
| |
|
|
| |
Fix wrong multiplier for /proc/meminfo, and do style cleanups.
|
| |
|
|
|
|
|
|
| |
This reverts commit 3a9a63f81aa37b48bc3eb4efdc2e695210805aa5, reversing
changes made to 7999f7c038a50d79b06edf2d45eb5ff2c25a5a42.
A lot of problems have been exposed by this change, so best to leave it
out of the 1.18.x series and work on it in master.
|
| |\
| |
| | |
MAINT: Only copy input array in _replace_nan() if there are nans to replace
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
Using generators instead of full-blown lists
Using set for search instead of list
Using min to get single element insteaf of sorting full list
|
| |\ \
| | |
| | | |
DEP: issue deprecation warning when creating ragged array (NEP 34)
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This PR allows the axis keyword in expand_dims to be a tuple of ints. Previously, axis could only be an int.
This issue was previously discussed in gh-12290 and the changes are based on gh-12290 (comment).
This PR also removes the deprecation added in v1.13 (2017-05-17), where previously axis could be outside of the range (-a.ndim - 1) <= axis <= a.ndim. Such an axis value will now raise an AxisError. Please let me know if it's too soon to remove this deprecation (I could not find any dev docs stating the length of the numpy deprecation cycle).
Closes gh-12290.
|
| | | |
| | |
| | | |
Address gh-14142 for the 1.18 release: warn when saving a dtype with metadata that cannot be loaded.
|
| | |/
|/| |
|
| | |
| |
| |
| |
| |
| | |
Use `ddof = 1` instead of 9, and remove a confusing comment.
Closes gh-15010.
|
| | | |
|
| | |
| |
| | |
Parameter fname: generator must return byte strings for Python 3, not Python3k.
|
| | |
| |
| |
| |
| | |
Using generators instead of full-blown lists
Using set for search instead of list
Using min to get single element insteaf of sorting full list
|
| | |
| |
| |
| | |
Relates to gh-6103
|
| | | |
|
| |\ \
| | |
| | | |
ENH: change object-array comparisons to prefer OO->O unfuncs
|
| | | | |
|
| | |/ |
|
| |/
|
|
|
|
| |
Fraction.__float__ gives a DeprecationWarning if the division results in a non-builtin float
This was never intended as part of the test anyway.
|
| |
|
|
|
|
|
| |
The original version doesn't render correctly; see, for example,
https://numpy.org/devdocs/reference/generated/numpy.mirr.html#numpy.mirr
The HTML output for the updated markup looks much better.
|
| |\
| |
| | |
DOC: clarify residual in np.polyfit
|
| | | |
|
| |\ \
| | |
| | | |
MAINT: reduce the number of doc build warnings
|
| | | | |
|
| | |/ |
|
| | |
| |
| |
| | |
As per NEP-32, the financial functions are deprecated.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
An input such as
np.histogram(np.array([-2, 0, 127], dtype=np.int8), bins="auto")
would raise the exception
ValueError: Number of samples, -1, must be non-negative.
The problem was that the peak-to-peak value for the input array was
computed with the `ptp` method, which returned negative values for
signed integer arrays when the actual value was more than the
maximum signed value of the array's data type.
The fix is to use a peak-to-peak function that returns an
unsigned value for signed integer arrays.
Closes gh-14379.
|
| |\ \
| | |
| | | |
DOC: added note to docstring of numpy.savez
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Note states that dictionary keys are stored as file names and may
undergo unintended changes when they are not recognized as valid
file names. In such cases the keys must be properly encapsulated
and escaped to avoid being changed.
|
| | |/
| |
| |
| |
| |
| | |
Note indicates that when used with dictionaries, savez will remove
leading "/" in dictionary keys.
See #9265
|
| | |
| |
| |
| |
| | |
Address gh-13919 by adding to documentation that xp cannot contain NaN because its input is required to be sorted.
Closes gh-13919
|
| |\ \
| |/
|/| |
MAINT: Avoid BytesWarning in PyArray_DescrConverter()
|
| | |
| |
| |
| |
| |
| |
| |
| | |
A BytesWarning can be emitted when bytes are and strings are mismatched.
Catching BytesWarning ensures a better boundary between str and bytes
type. The test suite is now run with the -b flag to emit this warning.
Fixes #9308
|
| | |
| |
| |
| |
| |
| |
| | |
The documentation currently states "It works in 2-D as well"
with attached example not correct.
closes #14466
|
| |\ \
| |/
|/| |
DEP: remove deprecated select behaviour
|
| | | |
|
| |\ \
| | |
| | | |
DOC: update submodule docstrings, remove info.py files
|
| | |/ |
|
| |/
|
|
|
| |
In wrap and clip modes ravel_multi_index crashes or gave
invalid results if input arrays were empty but the shape not.
|
| | |
|
| |
|
|
|
|
|
| |
Also finish the TODO about figuring out which np.lib.<submodule>'s
are public.
This is a giant mess ...
|
| | |
|
| | |
|
| |\
| |
| | |
Mention that split() returns views into the original array
|
| | |
| |
| | |
Also adds a minor code change
|