summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* MAINT/BUG: Remove special-casing for 0d arrays, now that indexing with a ↵Eric Wieser2017-10-211-15/+8
| | | | | | single boolean is ok Also fix the test added in gh-4792, which didn't make sense, but passed anyway
* MAINT: rename mn and mx to first_edge and last_edgeEric Wieser2017-10-191-18/+19
|
* MAINT: Tidy np.histogram, and improve error messagesEric Wieser2017-10-191-59/+77
| | | | | | | | | | Split up the overloaded `bins` variable into separate names depending on its meaning Helpful errors are now emitted for: * non-integer bin counts (fixes gh-8072) * non-1d bin edges Removes another use of `np.isscalar`...
* Merge pull request #9294 from b-carter/fix_histogram_monotonicity_checkEric Wieser2017-09-241-1/+1
|\ | | | | BUG: Fixes histogram monotonicity check for unsigned bin values
| * allow non-strictly increasing binsBrandon Carter2017-08-191-1/+1
| |
| * minor change to the logicBrandon Carter2017-06-251-1/+1
| |
| * BUG: fixes unsigned bins monotonicity check, see #9222Brandon Carter2017-06-241-1/+1
| |
* | MAINT: Use zip, not enumerateEric Wieser2017-09-211-17/+18
| | | | | | | | Double-indexing is just a little harder to read
* | Merge pull request #9408 from eric-wieser/gradient-fixCharles Harris2017-09-211-7/+12
|\ \ | | | | | | BUG: various fixes to np.gradient
| * | MAINT: Use clearer variableEric Wieser2017-07-131-1/+1
| | |
| * | BUG: Use np.ndim not asarray, to allow duck-typesEric Wieser2017-07-131-7/+6
| | |
| * | BUG: Only allow 1d distance arraysEric Wieser2017-07-131-1/+3
| | | | | | | | | | | | | | | | | | 2d arrays would work, but in unpredictable and undocumented ways. This at least makes gh-9401 give a better error message.
| * | BUG: Allow 0d arrays instead of scalars in gradientEric Wieser2017-07-131-7/+11
| | | | | | | | | | | | This fixes gh-8292
* | | DOC: rot90 wrongly positioned versionadded directive. [skip ci]Michael Seifert2017-08-251-2/+2
| | |
* | | MAINT: Use moveaxis instead of rollaxis internally (#9475)Nico Schlömer2017-08-101-7/+7
| | | | | | | | | | | | | | | Also add a hint to the documentation advising the use of moveaxis over rollaxis. Tests for rollaxis are left alone.
* | | MAINT/DOC: Use builtin when np.{x} is builtins.{x}.Eric Wieser2017-08-051-9/+9
| | | | | | | | | | | | | | | | | | | | | This is the case for x in {int, bool, str, float, complex, object}. Using the np.{x} version is deceptive as it suggests that there is a difference. This change doesn't affect any external behaviour. The `long` type is missing in python 3, so np.long is still useful
* | | MAINT: Changed diff to use iterative instead of recursive approachJoseph Fox-Rabinovitz2017-07-311-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TST: Added tests for `n` parameter Added test for `datetime64` type change Added tests for axis normalization Added test for subtype handling DOC: Minor updates to docs: Added explanation for `n==0` Added documentation describing `datetime64` handling Updated formatting Added call to normalize_axis_index
* | | MAINT: Use dtypes, not typecodes, and remove special casing for timedeltaEric Wieser2017-07-131-27/+21
| | |
* | | BUG: float16 is promoted to float64 by gradientEric Wieser2017-07-131-1/+1
| |/ |/| | | | | This isn't the case for `diff`
* | MAINT: Use neq instead of xor in diffEgor Panfilov2017-06-171-1/+1
| |
* | BUG: Switched to xor for bool arrays in diff, added corresponding testsEgor Panfilov2017-06-171-5/+9
| |
* | DOC: BLD: fix lots of Sphinx warnings/errors.Ralf Gommers2017-06-101-1/+1
| |
* | Merge pull request #9214 from eric-wieser/no-one-arg-whereCharles Harris2017-06-031-1/+1
|\ \ | | | | | | MAINT: Don't internally use the one-argument where
| * | MAINT: Don't internally use the one-argument whereEric Wieser2017-06-031-1/+1
| | | | | | | | | | | | nonzero is a clearer spelling
* | | BUG: KeyboardInterrupt is swallowed all over the placeEric Wieser2017-06-031-1/+1
|/ / | | | | | | Bare except is very rarely the right thing
* | Merge pull request #9212 from eric-wieser/tidy-function_baseJulian Taylor2017-06-031-5/+3
|\ \ | | | | | | MAINT: Combine similar branches
| * | MAINT: Combine similar branchesEric Wieser2017-06-031-5/+3
| |/
* | MAINT: Use np.concatenate instead of np.vstack (#8934)Joseph Paul Cohen2017-06-021-12/+4
|/ | | | | | | | | | | | | | The np.vstack function is maintained for backward compatibility, it's use in new code is discouraged. * MAINT: Replace internal uses of vstack vstack is supported only for backward compatibility We should use concatenate or stack instead * MAINT: Remove 1d special casing in piecewise * STY: Fix missing blank line in ma.tests.test_extras.py
* ENH: Spelling fixesVille Skyttä2017-05-091-1/+1
|
* DOC: Explain the behavior of diff on unsigned typesEric Wieser2017-04-251-0/+17
| | | | Fixes #2522
* DOC: Fix typos in percentile (#8900)Baurzhan Muftakhidinov2017-04-061-2/+2
|
* MAINT: Rename _validate_axis, and document itEric Wieser2017-03-281-2/+2
|