summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #20446 from abatomunkuev/issue#20423Matti Picus2021-11-251-3/+10
|\ | | | | BUG: Fixed output variable overriding in numpy.info()
| * BUG: Fixed docstring of numpy.info()Andrei Batomunkuev2021-11-241-1/+2
| |
| * Fixed python docstring in info()Andrei Batomunkuev2021-11-241-1/+1
| |
| * BUG: Fixed output overriding in numpy.info(), so that it correctly displays ↵Andrei Batomunkuev2021-11-241-2/+8
| | | | | | | | in Google Colab. Closes#20423
* | Merge pull request #20433 from BvB93/122_typingCharles Harris2021-11-221-2/+2
|\ \ | | | | | | BUG: Fix an incorrect protocol used in `np.lib.shape_base`
| * | BUG: Fix an incorrect protocol used in `np.lib.shape_base`Bas van Beek2021-11-221-2/+2
| | |
* | | ENH: Add annotations for `np.emath`Bas van Beek2021-11-221-10/+91
|/ / | | | | | | Aka `np.lib.scimath`
* | DEP: remove deprecated `np.asscalar` functionRalf Gommers2021-11-212-57/+20
| | | | | | | | Was deprecated in 1.16.0
* | Merge pull request #20093 from Mukulikaa/indexing-howtoMatti Picus2021-11-171-2/+2
|\ \ | | | | | | DOC: Created an indexing how-to
| * | DOC: Added and modified examplesMukulika2021-11-111-2/+2
| | | | | | | | | | | | Also fixed minor typos and styling errors
* | | Merge pull request #20147 from ↵Matti Picus2021-11-171-1/+2
|\ \ \ | | | | | | | | | | | | | | | | arushi-08/updated-docstring-for-binary-file-object DOC: updated docstring for binary file object
| * | | DOC: updated file object docstringArushi Sharma2021-10-261-1/+1
| | | |
| * | | DOC: updated docstring for binary file objectArushi Sharma2021-10-211-1/+2
| | | |
* | | | Merge pull request #20244 from MuhammadMotawe/clarify-sqrt-behaviorMatti Picus2021-11-171-0/+9
|\ \ \ \ | | | | | | | | | | DOC: Clarify behavior of ``np.lib.scimath.sqrt`` apropos -0.0
| * | | | MAINT: Address review commentsMuhammad Motawe2021-10-301-5/+0
| | | | | | | | | | | | | | | Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
| * | | | DOC: Clarify behavior of np.lib.scimath.sqrt in the presence of negative 0Muhammad Motawe2021-10-301-0/+14
| | |_|/ | |/| |
* | | | DOC: Fixups for interpolation rename comments from reviewSebastian Berg2021-11-151-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
* | | | DOC: Update percentile/quantile docsSebastian Berg2021-11-122-60/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mainly fixes the method list slightly, tones down the warning a bit and fixes the link to the paper (I did not realize that the link failed to work due only because the reference was missing from nanquantile/nanpercentile).
* | | | DOC: Add ticks to quantile interpolation/method errorSebastian Berg2021-11-121-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: abel <aoun@cerfacs.fr>
* | | | DOC: Remove reference to paper from quantile `method` kwargSebastian Berg2021-11-122-4/+4
| | | | | | | | | | | | | | | | | | | | Apparently, sphinx does not resolve references to footnotes from parameter descriptions.
* | | | MAINT: Rename interpolation to method in percentile stubsSebastian Berg2021-11-121-13/+13
| | | |
* | | | DOC: Fixup the percentile methods plotSebastian Berg2021-11-121-12/+19
| | | |
* | | | BUG: quantile discrete methods ended up using -1 as index sometimesSebastian Berg2021-11-122-9/+22
| | | | | | | | | | | | | | | | | | | | Also, the closest-observation did not correctly support multiple quantiles calculated at the same time (broadcasting error).
* | | | API,DEP: Rename percentile/quantile `interpolation=` to `method=`Sebastian Berg2021-11-124-162/+226
| |_|/ |/| |
* | | TST: Add test for max ulp in default quantile calculationabel2021-11-091-0/+8
| | |
* | | MTH: Update quantile default lerp methodabel2021-11-091-5/+7
| | | | | | | | | | | | | | | | | | For method 7 of H&F, using `(n - 1) * quantiles` instead of the usual method gives a more accurate result.
* | | DOC: Remove non-existent aliasabel2021-11-083-13/+10
| | |
* | | Merge pull request #18203 from anntzer/fqSebastian Berg2021-11-051-1/+2
|\ \ \ | | | | | | | | MAINT: Speedup np.quantile.
| * | | PERF: Speedup np.quantile.Antony Lee2021-11-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Avoiding the unnecessary calls to moveaxis() speed up `np.quantile(x, .5)` (`x = np.random.rand(1000)`) by ~10% (although there's a lot of variability) for me.
* | | | MAINT: Add annotations for a missing `percentile` interpolation kind: ↵Bas van Beek2021-11-051-0/+1
|/ / / | | | | | | | | | `"inclusive"`
* | | DOC: Refer to the quantile/percentile notes for nan versionsSebastian Berg2021-11-042-201/+4
| | |
* | | MAINT: Remove unnecessary import of _QuantileInterpolationSebastian Berg2021-11-041-1/+0
| | |
* | | TST: Make use of clongdouble and longdoubleabel2021-11-041-2/+2
| | | | | | | | | | | | | | | On some platforms float128 and complex256 do not exist. Using (c)longdouble aliases should work on all platforms.
* | | DOC: Update _InterpolationKindabel2021-11-041-1/+9
| | |
* | | TST: Add parametrize for interpolation methodsabel2021-11-041-91/+43
| | |
* | | TST: Add extrapolation testsabel2021-11-041-0/+9
| | |
* | | MAINT: Clean following PR commentsabel2021-11-042-17/+7
| | |
* | | Fix issue with nan scalarabel2021-11-042-2/+8
| | | | | | | | | | | | Also added unit test for it.
* | | DOC: Improve quantile documentationabel2021-11-041-20/+67
| | | | | | | | | | | | Also removed unused imports
* | | Fix _lerpabel2021-11-042-30/+26
| | | | | | | | | | | | | | | - some changes were unrelated to the PR and have been reverted, including, renaming and moving the logic around. - Also renamed _quantile_ureduce_func to its original name
* | | DOC: fix docstrings.Charles Harris2021-11-042-325/+523
| | | | | | | | | | | | | | | Hopefully fix the docstrings of percentile, nanpercentile, quantile, and nanquantile so that CircleCI passes.
* | | MAINT, ENH [#10736] Add interpolation methods to quantileabel2021-11-043-194/+788
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added the missing linear interpolation methods. - Updated the existing unit tests. - Added pytest.mark.xfail for boolean arrays See - https://github.com/numpy/numpy/pull/19857#issuecomment-919258693 - https://github.com/numpy/numpy/issues/19154
* | | DOC: Do not leave space between directive name and double colon.Matthias Bussonnier2021-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From my regular expression foo, those are the only 9 case whereas there are about ~2000 usage that do not have spaces. While this is ok with docutils/sphinx, it does not seem to be documented, and that means that other parsers will see that as comments, leading to for example improper syntax highlighting. This make it also a tiny bit harder to develop alternative rst parsers.
* | | ENH: Check that the lengths of the inputs to histogram2d are the same. (#20228)Jérome Eertmans2021-11-022-0/+13
|/ / | | | | | | | | | | | | Improves exception message when inputs have different shapes. Closes gh-20050 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | Merge remote-tracking branch 'upstream/main' into better-select-exampleJonas Liechti2021-10-2513-176/+1488
|\ \
| * \ Merge pull request #20071 from alessiamarcolini/refactorCharles Harris2021-10-225-8/+2
| |\ \ | | | | | | | | MAINT: Remove unused imports and remove duplicated tests
| | * | MAINT: remove unused importsAlessia Marcolini2021-10-085-8/+2
| | | |
| * | | BUG: lib: Fix error raised by insert.warren2021-10-202-3/+7
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `insert` is given a single out-of-bounds index in a list, e.g. np.insert([0, 1, 2], [99], [3, 4]) # 99 is out of bounds a TypeError was being raised because of a bug in the formatting of the message. Before this change, the error is TypeError: %i format: a number is required, not list After, we get the expected IndexError: index [99] is out of bounds for axis 0 with size 3
| * | Add note to iterable docstring about 0d arrays.Ross Barnowski2021-10-151-0/+13
| | | | | | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * | Merge pull request #20059 from DimitriPapadopoulos/lgtm_recommendationsCharles Harris2021-10-101-1/+1
| |\ \ | | | | | | | | MAINT: LGTM.com recommendations