summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Remove non-existent aliasabel2021-11-081-8/+6
|
* 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.
* DOC: Refer to the quantile/percentile notes for nan versionsSebastian Berg2021-11-041-1/+1
|
* MAINT: Clean following PR commentsabel2021-11-041-6/+3
|
* Fix issue with nan scalarabel2021-11-041-2/+2
| | | | Also added unit test for it.
* DOC: Improve quantile documentationabel2021-11-041-20/+67
| | | | Also removed unused imports
* Fix _lerpabel2021-11-041-23/+19
| | | | | - 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-041-169/+255
| | | | | Hopefully fix the docstrings of percentile, nanpercentile, quantile, and nanquantile so that CircleCI passes.
* MAINT, ENH [#10736] Add interpolation methods to quantileabel2021-11-041-124/+469
| | | | | | | | | | - 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
* Merge remote-tracking branch 'upstream/main' into better-select-exampleJonas Liechti2021-10-251-13/+36
|\
| * BUG: lib: Fix error raised by insert.warren2021-10-201-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * MAINT: LGTM.com recommendation: Unused importDimitri Papadopoulos2021-10-071-1/+1
| | | | | | | | | | | | | | | | | | Import of 'histogram' is not used. Import of 'histogramdd' is not used. Import of 'textwrap' is not used.
| * | added-suggestion-to#20047Sista Seetaram2021-10-061-1/+4
| | |
| * | DOC:add an example to show flag writeable cleared upon copySista Seetaram2021-10-061-0/+8
| |/
| * STY: Directly use a float rather than the `float64` constructorBas van Beek2021-10-041-1/+1
| |
| * BUG: Fix the `lib.function_base` window functions ignoring extended ↵Bas van Beek2021-09-301-9/+9
| | | | | | | | precision float dtypes
* | incorporated suggested editJonas I. Liechti2021-10-241-1/+0
| | | | | | Co-authored-by: Mukulika <60316606+Mukulikaa@users.noreply.github.com>
* | removed redundant commentJonas Liechti2021-10-221-3/+0
| |
* | type-o: used element instead of arrayJonas Liechti2021-10-051-3/+3
| |
* | adding example: also highlight priority in multiple matchesJonas Liechti2021-10-051-2/+11
| |
* | use an example that also shows default valueJonas Liechti2021-10-011-3/+3
|/
* DOC: Update links to online copy of Abramowitz and Stegun.warren2021-09-281-1/+1
|
* DOC: Add explanation of a sparse mesh grid (#19776)Tim Hoffmann2021-09-211-8/+27
| | | | | * Add explanation of a spare mesh grid. Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* MAINT: remove unused argument in private functionMarten van Kerkwijk2021-09-141-8/+7
|
* DOC: Fix typo in `unwrap` docstring.Ghiles Meddour2021-08-171-1/+1
|
* replace whitespaces in the signature argumentAnkit Dwivedi2021-08-121-4/+5
|
* fix lint errorsAnkit Dwivedi2021-08-071-1/+2
|
* ignore whitespaces while parsing gufunc signaturesAnkit Dwivedi2021-08-071-3/+3
|
* DOC: Remove explicit parameter sparse=False in meshgrid() indexing example ↵Tim Hoffmann2021-08-041-2/+2
| | | | | | (#19561) `sparse=False` is the default anyway. Stating it explicitly has no effect on the example, but clutters the code.
* API: Ensure np.vectorize outputs can be subclasses.Marten van Kerkwijk2021-06-261-20/+25
| | | | | | | As is, this is true for the ufunc case, but not for the gufunc case, even if the underlying function does produce a subclass. Given the care taken to ensure inputs are kept as subclasses, this is almost certainly an oversight, which is here corrected.
* DOC: Fix formatting in rot90() docstring (#19256)Tim Hoffmann2021-06-161-2/+5
|
* Merge pull request #16987 from scimax/masterCharles Harris2021-05-191-14/+53
|\ | | | | ENH: Phase unwrapping generalized to arbitrary interval size
| * BUG: Fix missing "np." in docstring examples.Charles Harris2021-05-191-4/+4
| |
| * STY: Break long linesCharles Harris2021-05-191-9/+14
| |
| * Update numpy/lib/function_base.pyEric Wieser2021-02-161-1/+1
| |
| * Update numpy/lib/function_base.pyEric Wieser2021-02-161-0/+3
| |
| * Cleanup whitespaceEric Wieser2020-09-141-1/+1
| |
| * Add missing newlineEric Wieser2020-09-141-0/+1
| |
| * Cleanup whitespaceEric Wieser2020-09-141-1/+0
| |
| * Apply suggestions from code review Eric Wieser2020-09-141-3/+2
| | | | | | Cleanup whitespace
| * fix CI fails by blank linesMax Kellermeier2020-09-111-0/+3
| |
| * Update numpy/lib/function_base.pyEric Wieser2020-09-021-1/+1
| |
| * Comment in docs on discontinuity in unwrapMax Kellermeier2020-08-231-2/+3
| |
| * Apply suggestions from code reviewscimax2020-08-231-9/+10
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * Minor corrections in unwrapping docstringsMax Kellermeier2020-08-231-3/+3
| | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * Code cleanupscimax2020-08-211-5/+4
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * Updated incorrect argument in tests. boundary correction for int and float.Max Kellermeier2020-08-211-1/+3
| | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * Integer input returning integer outputMax Kellermeier2020-08-201-5/+13
| | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>