summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Fixing basic build errorsUddeshya Singh2018-07-011-2/+2
| |
| * DOC: update return type description for averageUddeshya Singh2018-06-281-6/+13
| |
* | Merge pull request #11637 from eric-wieser/simplify-angleCharles Harris2018-07-311-8/+11
|\ \ | | | | | | ENH: np.angle: Remove unnecessary multiplication, and allow subclasses to pass through
| * | DOC: Add versionchanged about subclassesEric Wieser2018-07-311-0/+3
| | |
| * | ENH: np.angle: Preserve subclassesEric Wieser2018-07-301-1/+1
| | |
| * | STY: Remove C-like parenthesesEric Wieser2018-07-301-1/+1
| | |
| * | MAINT: np.angle: Fix type of default argument to match docsEric Wieser2018-07-301-1/+1
| | |
| * | MAINT: np.angle: Remove unnecessary multiplicationEric Wieser2018-07-301-5/+5
| | |
* | | DOC: Import maplotlib to show contourf in docs.Heath Henley2018-07-271-0/+1
| | |
* | | DOC: Show plot in meshgrid example.Heath Henley2018-07-271-0/+1
|/ /
* | BUG: Don't convert inputs to `np.float64` in digitizeEric Wieser2018-07-061-1/+111
| | | | | | | | | | | | | | | | This converts digitize to a pure-python function that falls back on searchsorted. Performance doesn't really matter here anyway - if you care about performance, then you should just call searchsorted directly, rather than checking the order of the bins. Partially fixes gh-11022
* | MAINT: Move add_newdocs into core, since it only adds docs to those piecesEric Wieser2018-07-021-35/+1
|/
* Merge pull request #11347 from mattip/less-sphinx-warningsRalf Gommers2018-06-271-8/+9
|\ | | | | DOC: Silence many sphinx warnings
| * fixes from reviewmattip2018-06-241-8/+8
| |
| * DOC: typos, small fixesmattip2018-06-151-1/+2
| |
* | HTTP -> HTTPS, and other linkrot fixesMike Toews2018-06-161-9/+9
|/
* DOC: make docstring of np.interp clearer (#11280)Jörg Döpfert2018-06-081-2/+2
| | | | | | | | | | * update docstring of interp() * change "calculate" to "evaluate" to be consistent * remove "values" * make "data points" consistent
* DOC: Fix doctest formatting in `rot90()` examplesMiguel Sánchez de León Peque2018-06-011-3/+2
|
* DOC: Make doc examples using StringIO python2-3 compatibleAndras Deak2018-04-271-2/+2
|
* Merge pull request #10199 from chunweiyuan/quantileStephan Hoyer2018-04-231-2/+108
|\ | | | | ENH: Quantile
| * ENH: Adding np.quantile() and np.nanquantile(). #10199Chun-Wei Yuan2018-04-161-2/+108
| |
* | Merge pull request #10921 from mattip/percentile-graphCharles Harris2018-04-201-13/+16
|\ \ | | | | | | DOC: clear up warnings, fix matplotlib plot
| * | DOC: clear up warnings, fix matplotlib plotmattip2018-04-171-13/+16
| |/
* | ENH: Extend np.flip to work over multiple axesJunjie Bai2018-04-171-13/+37
|/ | | | Closes #10847
* doc: fix examples in docstring for np.flipBerend Kapelle2018-04-031-3/+0
|
* Merge pull request #10666 from dfreese/fix/covcomplexCharles Harris2018-03-161-1/+1
|\ | | | | BUG: fix complex casting error in cov with aweights
| * BUG: fix complex casting error in cov with aweightsDavid Freese2018-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | When using cov with a complex input and with aweights specified, cov will error as a result of trying to cast a complex value into a float64. This comes about since average is used to calculate the sum of the weights from aweights. average returns the sum of weights as the same type as its result, not the weights type. For a complex input m, and any type for aweights, this would result in a complex value for fact. It appears the primary purpose of np.float64(fact) is to provide a NaN value from the divide when fact is an integer zero. This has been replaced by using numpy.divide to replicate the same behavior, but to also handle complex types.
* | Merge pull request #10618 from eric-wieser/avoid-nontuple-indicesMarten van Kerkwijk2018-03-151-20/+22
|\ \ | | | | | | MAINT: Stop using non-tuple indices internally
| * | MAINT: Stop using non-tuple indices internallyEric Wieser2018-02-161-20/+22
| |/ | | | | | | | | | | 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