summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Add missing np. prefix to expand_dims docs (#10109)Hidehiro NAGAOKA2017-11-281-3/+3
|
* Merge pull request #9946 from eric-wieser/improve-take-docsAllan Haldane2017-11-281-5/+23
|\ | | | | DOC: describe the expansion of take and apply_along_axis in detail
| * DOC: describe the expansion of take and apply_along_axis in detailEric Wieser2017-11-211-5/+23
| | | | | | | | | | | | Extracted from gh-8714 [ci-skip]
* | Merge pull request #10054 from charris/gh-4208Charles Harris2017-11-265-284/+919
|\ \ | | | | | | ENH: Add encoding option to numpy text IO.
| * | MAINT: Various minor code cleanups.Charles Harris2017-11-244-64/+90
| | | | | | | | | | | | Minor cleanups of old code to reflect more modern usage.
| * | MAINT: Refactor some code in npyio.py.Charles Harris2017-11-214-55/+81
| | |
| * | DOC: Add some docstrings and edit others.Charles Harris2017-11-212-17/+69
| | | | | | | | | | | | | | | | | | | | | Add docstrings for some of the support functions in _datasource and npyio in order to aid future maintainers. [ci skip]
| * | ENH: Add encoding option to numpy text IO.Julian Taylor2017-11-215-240/+771
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modifies loadtxt and genfromtxt in several ways intended to add unicode support for text files by adding an `encoding` keyword to np.load, np.genfromtxt, np.savetxt, and np.fromregex. The original treatment of the relevant files was to open them as byte files, whereas they are now opened as text files with an encoding. When read, they are decoded to unicode strings for Python3 compatibility, and when written, they are encoded as specified. For backward compatibility, the default encoding in both cases is latin1.
* | | DOC: v/h/dstack docstr shouldn't imply deprecationAllan Haldane2017-11-211-15/+11
|/ / | | | | | | [ci skip]
* | Merge pull request #10021 from eric-wieser/no-dtype-bool-reprAllan Haldane2017-11-184-11/+11
|\ \ | | | | | | ENH: Don't show the boolean dtype in array_repr
| * | ENH: don't show boolean dtype, as it is impliedEric Wieser2017-11-134-11/+11
| | |
* | | ENH: Make `np.in1d()` work for unorderable object arrays (#9999)Jörg Döpfert2017-11-182-2/+39
|/ /
* | ENH: Add `order=` keyword to `np.eye()` (#9996)Danny Hermes2017-11-122-2/+16
| | | | | | Fixes #9995
* | ENH: add Decimal support to numpy.lib.financial (#9952)Garry Polley2017-11-112-96/+296
|/ | | | | Adds support for Decimal to the rate, pv, fv, pmt, ppmt, ipmt, mirr, npv functions Closes #9781
* Clarify docstring for numpy.array_splitDavid Linke2017-10-281-1/+7
| | | Before this addition, people could expect that only the last sub-array would have a different size. The added documentation and example make clear what the function really does.
* Merge pull request #9916 from dfreese/fix/genfromtxt_names_docCharles Harris2017-10-241-5/+6
|\ | | | | DOC: Clarify behavior of genfromtxt names field
| * DOC: Clarify behavior of genfromtxt names fieldDavid Freese2017-10-241-5/+6
| | | | | | | | | | | | | | | | | | The documentation on the name parameter for npyio.genfromtxt uses the phrase "valid line" which doesn't completely describe it's behavior. This updates the documentation on the names field to indicate the first line, with or without a comment delimeter, will be taken for the names field. fixes #9878
* | Merge pull request #9900 from eric-wieser/simplify-piecewiseCharles Harris2017-10-242-19/+33
|\ \ | |/ |/| MAINT/BUG: Remove special-casing for 0d arrays, now that indexing with a single boolean is ok
| * BUG: Throw an error if too many functions are given to piecewiseEric Wieser2017-10-232-1/+16
| | | | | | | | Especially necessary given the strange heuristics that decay the number of conditions to 1
| * TST: Add test for 0d conditions in np.piecewiseEric Wieser2017-10-221-0/+6
| |
| * 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-212-16/+9
| | | | | | | | | | | | single boolean is ok Also fix the test added in gh-4792, which didn't make sense, but passed anyway
* | Make warnings for nanmin and nanmax consistentErik Quaeghebeur2017-10-231-1/+1
| |
* | MAINT: Remove unused isscalar importEric Wieser2017-10-211-1/+1
|/
* DOC: Unindent enumeration in savetxt docstringAndras Deak2017-10-211-4/+4
| | | | | | The rendered markdown in the online documentation was broken due to the one-character indentation added in the multiline enumerations of the docstring of savetxt.
* 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 #9065 from eric-wieser/deprecate-bincountCharles Harris2017-10-181-2/+2
|\ | | | | DEP: 0 should be passed to bincount, not None
| * MAINT: improve wording of error messagesEric Wieser2017-10-171-2/+2
| |
* | BUG: Allow `unravel_index(0, ())` to return ()Eric Wieser2017-10-171-1/+12
|/ | | | Fixes gh-580
* Merge pull request #9868 from CatEars/update-docsCharles Harris2017-10-161-14/+14
|\ | | | | DOC: Update arraypad to use np.pad in examples
| * DOC: Update arraypad to use np.pad in examplesHenke Adolfsson2017-10-161-14/+14
| |
* | ENH: Save to ZIP files without using temporary files.Serhiy Storchaka2017-10-151-22/+33
|/ | | | | Since Python 3.6 it is possible to write directly to a ZIP file, without creating temporary files.
* Merge pull request #9294 from b-carter/fix_histogram_monotonicity_checkEric Wieser2017-09-242-1/+9
|\ | | | | 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
| |
| * TST: add test for unsigned bins monotonicity check, see #9222Brandon Carter2017-06-241-0/+8
| |
* | 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-212-8/+20
|\ \ | | | | | | 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-132-1/+7
| | | | | | | | | | | | | | | | | | 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-132-8/+15
| | | | | | | | | | | | This fixes gh-8292
* | | ENH Better error message for savetxt when X.ndim > 2Nelle Varoquaux2017-09-202-2/+11
| | | | | | | | | | | | | | | savetxt does not support saving arrays of dimension 0 or higher than 2. This pull request improves the message of the error raised.
* | | DOX: Fix mistaken word in nanprod docstring (#9703)Robert T. McGibbon2017-09-171-1/+1
| | |
* | | ENH: Align data in np.save() at 64 bytes (#9025)John Zwinck2017-09-132-22/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, saving format version 1 would align to 16 bytes, and saving version 2 would align improperly (bug #8085). Alignment is now always at least 64 bytes in either version, which supports memory mapping of the saved files on Linux, where mmap() offset must be a multiple of the page size. Why 64 bytes? Simply because we don't know of a case where more is needed. AVX alignment is 32 bytes; AVX-512 is 64. Fixes #8085, closes #8598.
* | | DOC: Correct the signature in pad doc for callable mode.Michael Seifert2017-09-101-8/+14
| | | | | | | | | | | | [skip ci]
* | | Merge pull request #6053 from ahaldane/multifield_structassignCharles Harris2017-09-091-2/+2
|\ \ \ | | | | | | | | MAINT: struct assignment "by field position", multi-field indices return views
| * | | TST: Fix/Remove old unit tests for structure assignmentAllan Haldane2017-09-071-2/+2
| | | |