summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | STY: Fix some style issues (mainly long lines)Sebastian Berg2022-01-141-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Note that one of the long lines is a link that cannot be split reasonably.
| * | | | TST: Fixup current loadtxt tests for changesSebastian Berg2022-01-141-8/+7
| | | | |
| * | | | ENH: Allow a single converter to be used for all columnsSebastian Berg2022-01-141-12/+14
| | | | | | | | | | | | | | | | | | | | This is always used if it is a callable.
| * | | | ENH: Move npreadtext into NumPy for faster text readingSebastian Berg2022-01-141-311/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces `np.loadtxt` with the new textreader. The file has a few minor cleanups compared to the npreadtext version. npreadtext was started by Warren Weckesser for inclusion in NumPy and then very heavily modified by me (Sebastian Berg) to improve it and slim it down slightly. Some parts of this code is inspired or even taken from the pandas parser (mainly the integer parsers are fairly verbatim still). Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
* | | | | MAINT: Add missing word to warning messageSadie Louise Bartholomew2022-02-071-1/+1
| | | | |
* | | | | DOC: lib/io.py was renamed to lib/npyio.pyMatthias Bussonnier2022-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | In 44118aedbac7c1c4465443ec23d104a83b9a24f9 (2010), so this docs examples would raise a `ValueError`.
* | | | | TYP,ENH: Add annotations for `np.lib.mixins`Bas van Beek2022-01-261-52/+65
| | | | |
* | | | | Merge pull request #20887 from BvB93/aliasesCharles Harris2022-01-248-60/+18
|\ \ \ \ \ | | | | | | | | | | | | TYP,MAINT: Add aliases for commonly used unions
| * | | | | MAINT: Create the `_ArrayLike` type-alias in `numpy.typing`Bas van Beek2022-01-247-39/+15
| | | | | | | | | | | | | | | | | | | | | | | | Represents a subset of `npt.ArrayLike` that can be parametrized w.r.t. `np.generic`
| * | | | | MAINT: Create the `_DTypeLike` type-alias in `numpy.typing`Bas van Beek2022-01-243-21/+3
| | | | | | | | | | | | | | | | | | | | | | | | Represents a subset of `npt.DTypeLike` that can be parametrized w.r.t. `np.generic`
* | | | | | Merge pull request #20885 from BvB93/param_specCharles Harris2022-01-242-0/+4
|\ \ \ \ \ \ | |/ / / / / |/| | | | | TYP,ENH: Improve typing with the help of `ParamSpec`
| * | | | | TYP: Mark annotations that can be improved with `Concatenate` once mypy ↵Bas van Beek2022-01-242-0/+4
| | |_|/ / | |/| | | | | | | | | | | | | supports it
* | | | | MAINT: fix typo (#20862)Ruben Garcia2022-01-201-1/+1
| | | | | | | | | | | | | | | [ci skip]
* | | | | DOC: Fix typo in meshgrid exampleEmma Simon2022-01-181-1/+1
|/ / / / | | | | | | | | | | | | | | | | coordinate was misspelled in a comment in the example code [ci skip]
* | | | MAINT, DOC: discard repeated wordsDimitri Papadopoulos2022-01-133-7/+6
| | | |
* | | | Merge pull request #20784 from DimitriPapadopoulos/codespellCharles Harris2022-01-121-1/+1
|\ \ \ \ | |/ / / |/| | | MAINT, DOC: fix new typos detected by codespell
| * | | MAINT, DOC: fix new typos detected by codespellDimitri Papadopoulos2022-01-121-1/+1
| | | |
* | | | ENH: Type the `like` parameter via a `__array_function__` protocolBas van Beek2022-01-112-13/+20
|/ / /
* | | ENH: Support for changing dtype in non-C-contiguous viewsJoseph R. Fox-Rabinovitz2022-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | Expires deprecated F-contiguous behavior. Simplifies C code of dtype set descriptor. Adds tests that verify which error condition is triggered. Introduces extra long exception message that upsets linter.
* | | STY: Use subscriptable `collections.abc` types over the generic aliases in …Bas van Beek2021-12-2310-23/+13
| | |
* | | STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-2320-142/+111
| | |
* | | STY: Replace `Union` with the `|` operatorBas van Beek2021-12-225-17/+14
| | |
* | | STY: Replace `Optional` with the `|` operatorBas van Beek2021-12-221-18/+17
| | |
* | | ENH: add ndmin to `genfromtxt` behaving the same as `loadtxt` (#20500)Ivan Gonzalez2021-12-163-26/+132
| | |
* | | MAINT: Allow the `loadtxt` comments parameter to be `None`Bas van Beek2021-12-151-3/+3
| | |
* | | DOC: Merge doc strings of divide and true_divide. (#20246)drosin2021-12-081-1/+1
| | |
* | | BUG: Fix types of errors raised by genfromtxt (#20389)André Elimelek de Weber2021-12-032-11/+14
| | |
* | | DOC: Fix some target not found Sphinx warnings. (#20140)Chiara Marmo2021-12-011-9/+12
| | |
* | | 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
| | | | | |