summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
Commit message (Collapse)AuthorAgeFilesLines
...
* BUG: Fixing result of np quantile edge caseEric Mariasis2020-02-281-1/+1
|
* BUG: fix doctest exception messagesmattip2020-02-281-1/+3
|
* STY: use 'yield from <expr>' for simple cases (#15444)Mike Taves2020-01-271-8/+4
| | | | | | | | | This PR uses simple cases of PEP 380 to rewrite: for v in g: yield v into: yield from <expr>
* MAINT: Revise imports from collections.abc moduleMike Taves2020-01-221-7/+2
|
* MAINT: Implement keyword-only arguments as syntaxEric Wieser2020-01-061-20/+7
| | | | Now that 2.7 is gone, there is no need to pop manually from kwarg dictionaries.
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | 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.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUG: lib: Fix handling of integer arrays by gradient.Warren Weckesser2020-01-011-4/+13
| | | | | | | In numpy.gradient, convert integer array inputs to float64 to avoid unwanted modular arithmetic. Closes gh-15207.
* MAINT: lib: Clean up in function_base.py.Warren Weckesser2020-01-011-16/+13
| | | | | | * Remove conditional imports that handled Python 2. * Remove unused imports. * Partial PEP 8 clean up.
* DOC: lib: Use a clearer example of ddof in the notes of the cov docstring.Warren Weckesser2019-11-301-1/+1
| | | | | | Use `ddof = 1` instead of 9, and remove a confusing comment. Closes gh-15010.
* Merge pull request #14699 from mattip/doc-warningsRalf Gommers2019-10-181-1/+1
|\ | | | | MAINT: reduce the number of doc build warnings
| * DOC: convert `None` to bare None or ``None``mattip2019-10-151-1/+1
| |
* | DOC: Add to doc that interp cannot contain NaN (#14598)Zijie (ZJ) Poh2019-10-151-3/+7
|/ | | | | Address gh-13919 by adding to documentation that xp cannot contain NaN because its input is required to be sorted. Closes gh-13919
* DOC misleading np.sinc() documentationSamesh Lakhotia2019-10-021-7/+0
| | | | | | | The documentation currently states "It works in 2-D as well" with attached example not correct. closes #14466
* DEP: remove expired deprecation in selectmattip2019-09-231-21/+3
|
* DOC: Added missing versionadded to diff(prepend)Joseph R. Fox-Rabinovitz2019-09-181-2/+4
|
* DOC: lib: Add more explanation of the weighted average calculation.Warren Weckesser2019-08-261-2/+5
| | | | | Also removed the incorrect comment from the docstring of `numpy.ma.average` about the imaginary part of `weights` being ignored.
* DOC: Change (old) range() to np.arange()Dieter Werthmüller2019-07-111-3/+3
| | | I think it should be like that (maybe I am mistaken).
* BUG: i0 Bessel function regression on array-likes supporting ufuncsSebastian Berg2019-07-041-0/+1
| | | | | | | | | | For array likes supporting UFuncs, `np.abs` would return an array-like, and this is currently not compatible with the use of `np.piecewise`. The simplest fix seems to be to just call asanyarray (which piecewise calls anyway on the array) beforehand. This way we ensure the conditions are also an array. Fixes gh-13894
* Update function_base.pyHe Jia2019-06-141-1/+2
|
* BUG: ensure i0 does not change the shape.Marten van Kerkwijk2019-06-121-13/+9
|
* MAINT: Misc. typo fixes (#13664)luzpaz2019-05-311-2/+2
| | | | | | * DOC, MAINT: Misc. typo fixes Found via `codespell`
* BUG: Increment stacklevel for warnings to account for NEP-18 overrides (#13589)Stephan Hoyer2019-05-201-12/+12
| | | | | | | | | | | | | | * 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>
* Merge pull request #13298 from navneet-nmk/diff-errorEric Wieser2019-05-021-0/+2
|\ | | | | ENH: Added clearer exception for np.diff on 0-dimensional ndarray
| * ENH: add clearer error message for diff(0-d)ayir2019-04-261-0/+2
| |
* | ENH: Add support for Fraction to percentile and quantileEric Wieser2019-04-231-2/+3
| | | | | | | | With true division available, using `.0` to convert integers to floats offers no value, and harms compatibility with precise rational types.
* | DOC: Specify range for numpy.anglekritisingh12019-04-211-2/+2
| |
* | DOC: fix doc build warnings in a cleaner way.Ralf Gommers2019-04-151-6/+12
| | | | | | | | Addresses review comment by @eric-wieser.
* | DOC: fix 4 remaining doc build warnings.Ralf Gommers2019-04-141-31/+31
|/ | | | 2 for polyfit rankwarning, 2 for divide by zero in log10.
* DEV: cleanup imports and some assignments (from LGTM)mattip2019-03-171-1/+0
|
* DOC: revert #13058 and fix Makefilemattip2019-03-011-3/+3
|
* DOC: Update interp docstringeuronion2019-02-281-3/+3
| | | | Adding 'strictly' to make the conditions to be met by the `xp` argument even more clear. Following the suggestion in https://github.com/numpy/numpy/issues/10448#issuecomment-468302058 .
* DOC: Update docstring of diff() to use 'i' not 'n'Andy Scholand2019-01-151-1/+1
| | | See issue https://github.com/numpy/numpy/issues/12742
* ENH: remove "Invalid value" warnings from median, percentilemattip2019-01-061-2/+0
|
* DOC, TST: clean up matplotlib importsTyler Reddy2019-01-021-7/+0
| | | | | | * as requested by review in gh-12634, the vast majority of docstring matplotlib imports can be simplified to a single line
* DOC, TST: remove agg setting from docsTyler Reddy2019-01-021-4/+0
| | | | | | | * there is no longer any usage of "agg" backend switching in our docstrings because this backend is already activated in the refguide_check machinery
* Refactored numpy.delete function docsAbdur Rehman2018-12-211-1/+1
|
* MAINT: address several reviewer commentsTyler Reddy2018-12-141-4/+4
|
* TST, DOC: enable refguide_checkTyler Reddy2018-12-141-152/+170
| | | | | | | | * 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
* DEP: remove deprecated numpy.lib.function_base.uniquemattip2018-11-151-19/+0
|
* ENH: set correct __module__ for objects in numpy's public APIStephan Hoyer2018-11-131-0/+9
| | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :).
* MAINT: set preferred __module__ for numpy functionsStephan Hoyer2018-10-231-1/+7
|
* ENH: __array_function__ for np.lib, part 1Stephan Hoyer2018-10-081-0/+159
| | | | np.lib.arraypad through np.lib.nanfunctions
* MAINT: remove unused importsEmil Hessman2018-09-291-8/+6
|
* ENH add prepend and append kwargs to diffMatt Harrigan2018-09-251-1/+29
|
* DOC: fix typo in vectorize docstringMatthew Brett2018-08-131-2/+2
| | | | "an single" typo pointed out by keithbriggs - see gh-11730.
* Merge pull request #11436 from uds5501/document-average-return-typeMatti Picus2018-08-121-6/+19
|\ | | | | DOC: Document average return type
| * Update function_base.pyUddeshya Singh2018-08-121-4/+4
| |
| * Update function_base.pyUddeshya Singh2018-07-131-4/+5
| | | | | | | | * fixed grammatical mistakes * added a space before Example
| * Update function_base.pyUddeshya Singh2018-07-091-5/+10
| | | | | | | | * further elaborated the return variable types * fixed the space error