summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | ENH: Add support for datetimes to histogramsEric Wieser2017-12-262-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | Currently only supported for explicit bins
* | | | | | BUG: Allow nan values in the data when the bins are explicitEric Wieser2017-12-242-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-7503 Closes gh-8984
* | | | | | Merge pull request #10268 from eric-wieser/fix-gh-7864Charles Harris2017-12-242-1/+12
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Fix misleading error when coercing to array
| * | | | | | BUG: Fix misleading error when coercing to arrayEric Wieser2017-12-242-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes gh-7864
* | | | | | | MAINT: extract private helper function to compute histogram bin edgesEric Wieser2017-12-241-68/+91
|/ / / / / /
* | | | | | MAINT: Extract helper functions from histogramEric Wieser2017-12-221-27/+44
| | | | | |
* | | | | | Merge pull request #10186 from eric-wieser/move_histogramCharles Harris2017-12-225-1313/+1343
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Move histogram and histogramdd into their own module
| * \ \ \ \ \ Merge branch 'master' into move_histogramEric Wieser2017-12-185-54/+55
| |\ \ \ \ \ \ | | |/ / / / /
| * | | | | | MAINT: Move histogram and histogramdd into their own moduleEric Wieser2017-12-105-1313/+1343
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: give correct version of np.nansum changeMatthew Brett2017-12-191-1/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | nansum started returning 0 from all-nan slices in 1.9.0, according to my tests, not 1.8.1 or 1.8.2, which still return NaN. [skip ci]
* | | | DOC: fix minor typosUnknown2017-12-121-2/+2
| | | |
* | | | BUG: Fix mutating state between items in np,r_Eric Wieser2017-12-111-3/+3
| | | | | | | | | | | | | | | | It's not at all clear what trans1d is supposed to do here, but it's certainly not supposed to change value between elements!
* | | | ENH: Allow np.r_ to accept 0d arraysEric Wieser2017-12-112-16/+16
| | | | | | | | | | | | | | | | Fixes gh-9233
* | | | Merge pull request #10195 from eric-wieser/better-percentile-docsMarten van Kerkwijk2017-12-112-34/+28
|\ \ \ \ | | | | | | | | | | DOC: Fixup percentile docstring, from review in gh-9213
| * | | | DOC: Fixup percentile docstring, from review in gh-9213Eric Wieser2017-12-102-34/+28
| |/ / / | | | | | | | | | | | | Updates the two docstrings to match.
* | | | DEP: Deprecate the pickle aliasesEric Wieser2017-12-101-1/+8
|/ / / | | | | | | | | | | | | | | | * The np.ma functions are misleading, as they do not actually do anything special for ma.array * The np.loads functions doesn't even have numpy-specific documentation, and does not behave consistently with `np.load` * The string overloads of np.ma.load and np.ma.dump do not work well on python 3, as they make assumptions about whether a binary or text pickle file is used (gh-5491)
* | | 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.