summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
* | Merge pull request #10750 from eric-wieser/percentile-graphCharles Harris2018-03-151-0/+27
|\ \ | | | | | | DOC: Add graph showing different behaviors of np.percentile
| * | DOC: Add graph showing different behaviors of np.percentileEric Wieser2018-03-151-0/+27
| | | | | | | | | | | | With thanks to @ricardoV94 for inspiring this
* | | TST: Import abstract classes from collections.abcFrederick Lefebvre2018-03-141-2/+7
|/ / | | | | | | | | | | | | | | Abstract collection classes accessed from the collections module have been deprecated since Python 3.3. They should be accessed through collections.abc. When run with Python 3.7, the deprecation warning cause multiple tests to fail.
* | BUG: fix error message in numpy.selectLouis Potok2018-03-081-1/+1
| |
* | DOC: Grammar of np.gradient docstringAllan Haldane2018-03-061-3/+3
| | | | | | | | [ci-skip]
* | Merge pull request #10547 from hobler/patch-1Charles Harris2018-02-281-1/+1
|\ \ | | | | | | DOC: Fix incorrect formula in gradient docstring.
| * | Update function_base.pyhobler2018-02-081-1/+1
| |/
* | BUG/MAINT: Remove special handling of 0d arrays and scalars in interpEric Wieser2018-02-251-16/+3
|/ | | | | | | | | | These are now handled generically by the underlying C function This fixes the period argument for 0d arrays. Now never returns a pure-python scalar, which matches the behaviour of most of numpy. Rework of b66a200a4a1e98f1955c8a774e4ebfb4588dab5b
* DOC: fix formatting in interp exampleZane Bradley2018-01-251-1/+2
|
* More misc. typosluz.paz2018-01-041-1/+1
| | | Found via `codespell`
* Merge pull request #10241 from eric-wieser/no-repeated-percentile-checksCharles Harris2018-01-011-16/+26
|\ | | | | MAINT: Avoid repeated validation of percentiles in nanpercentile
| * MAINT: Avoid repeated validation of percentiles in nanpercentileEric Wieser2017-12-181-16/+26
| | | | | | | | | | | | Previously, this would check the percentiles were 0 <= q <= 100 on every single slice of non-reduction axes. This also pulls the division by 100 to the top level, which makes things clearer, and also reduces the size of the stack trace
* | Documentation and misc. typosluzpaz2017-12-301-1/+1
| | | | | | Found via `codespell`
* | Merge pull request #10186 from eric-wieser/move_histogramCharles Harris2017-12-221-801/+3
|\ \ | | | | | | MAINT: Move histogram and histogramdd into their own module
| * \ Merge branch 'master' into move_histogramEric Wieser2017-12-181-15/+14
| |\ \ | | |/
| * | MAINT: Move histogram and histogramdd into their own moduleEric Wieser2017-12-101-801/+3
| | | | | | | | | | | | | | | | | | | | | 800 self-contained lines are easily enough to go in their own file, as are the 500 lines of tests. For compatibility, the names are still available through `np.lib.function_base.histogram` and `from np.lib.function_base import *` For simplicity of imports, all of the unqualified `np.` names are now qualified
* | | ENH: fix typoTai-Lin Wu2017-12-201-1/+1
| |/ |/|
* | DOC: Fixup percentile docstring, from review in gh-9213Eric Wieser2017-12-101-15/+14
|/ | | | Updates the two docstrings to match.
* ENH: don't show boolean dtype, as it is impliedEric Wieser2017-11-131-1/+1
|
* BUG: Throw an error if too many functions are given to piecewiseEric Wieser2017-10-231-1/+6
| | | | Especially necessary given the strange heuristics that decay the number of conditions to 1
* DOC: piecewise callables take 1d arraysEric Wieser2017-10-211-2/+2
|