summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #10108 from eric-wieser/datetime_data-docAllan Haldane2017-11-281-0/+98
|\ | | | | DOC: Add documentation for datetime_data
| * DOC: Add documentation for datetime_dataEric Wieser2017-11-271-0/+37
| | | | | | | | [ci-skip]
| * DOC: Add documentation for datetime_as_stringEric Wieser2017-11-271-0/+61
| | | | | | | | [ci-skip]
* | Merge pull request #10111 from eric-wieser/improve-datetime64-repr-alignmentAllan Haldane2017-11-283-29/+62
|\ \ | | | | | | ENH: Improve alignment of datetime64 arrays containing NaT
| * | ENH: Improve alignment of datetime64 arrays containing NaTEric Wieser2017-11-283-29/+62
| |/ | | | | | | | | | | Makes them consistent with timedelta Fixes #10102
* | 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-282-12/+60
|\ \ | |/ |/| 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-212-12/+60
| | | | | | | | | | | | Extracted from gh-8714 [ci-skip]
* | Merge pull request #10096 from eric-wieser/fix-assert_equal-datetimeCharles Harris2017-11-272-28/+46
|\ \ | | | | | | BUG: Fix assert_equal on time-like objects
| * | BUG: Fix assert_equal on time-like objectsEric Wieser2017-11-262-28/+46
| | | | | | | | | | | | | | | | | | Also does some cleanup on the float assert_equal to make it look more similar. Fixes #10081
* | | Merge pull request #10079 from mhvk/ufunc-doc-include-generalizedCharles Harris2017-11-271-5/+35
|\ \ \ | | | | | | | | DOC: mention generalized ufuncs, document signature attribute
| * | | DOC: add docstring to ufunc.signatureMarten van Kerkwijk2017-11-251-5/+35
| |/ /
* | | Merge pull request #10097 from eric-wieser/fix-timedelta-reprCharles Harris2017-11-272-16/+27
|\ \ \ | | | | | | | | BUG: Fix crash for 0d timedelta repr
| * | | BUG: Fix crash in repr of 0d timedelta arrayEric Wieser2017-11-272-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was missed when the formatters were changed to take an ND. Also changed to use the builtin isnat, rather than rolling one together where needed. Fixes #10094
| * | | TST: Use textwrap.dedent to clarify purpose of testEric Wieser2017-11-271-5/+8
| |/ /
* | | BUG: Fix out-of-bounds access when handling 0d ndarrays (#10101)Thomas Köppe2017-11-271-1/+3
| | |
* | | Merge pull request #10068 from seberg/issue-10066Charles Harris2017-11-262-4/+56
|\ \ \ | | | | | | | | BUG: Fix memory leak for subclass slicing
| * | | BUG: Fix memory leak for subclass slicingSebastian Berg2017-11-262-4/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A slice object was created if __getslice__/__setslice__ was used by an inherited subclass (through python or directly) but not decref'd. Closes gh-10066
* | | | 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.
* | | | Merge pull request #10044 from ahaldane/futurewarn_voiditemCharles Harris2017-11-262-0/+24
|\ \ \ \ | |_|/ / |/| | | DEP: FutureWarning for void.item(): Will return bytes
| * | | DEP: FutureWarning for void.item(): Will return bytesAllan Haldane2017-11-262-0/+24
| | | |
* | | | Merge pull request #10042 from eric-wieser/better-ndarray.__int__Allan Haldane2017-11-233-186/+148
|\ \ \ \ | | | | | | | | | | BUG: Allow `int` to be called on nested object arrays, fix `np.str_.__int__`
| * | | | BUG: Allow `int` to be called on nested object arraysEric Wieser2017-11-173-186/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than assuming that any object array is self-referencing, we can just use PyEnter_RecursiveCall in: * `__int__` * `__float__` * `__long__` * `__hex__` * `__oct__` This works towards (but does _not_ fix) #9972, by not directly touching the `nb_*` slots ourselves. Substantial code deduplication here. Error message is different, but perhaps also better: ```python >>> int(np.array([None])) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' # now TypeError: cannot convert to an int; scalar object is not a number #before ```
* | | | | Merge pull request #10057 from ahaldane/vhdstack_docstringCharles Harris2017-11-212-39/+30
|\ \ \ \ \ | |_|_|/ / |/| | | | DOC: v/h/dstack docstr shouldn't imply deprecation
| * | | | DOC: v/h/dstack docstr shouldn't imply deprecationAllan Haldane2017-11-212-39/+30
| | | | | | | | | | | | | | | | | | | | [ci skip]
* | | | | Merge pull request #9458 from eric-wieser/copyto-scalarAllan Haldane2017-11-202-1/+16
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Improve performance of np.copyto(where=scalar)
| * | | | | DOC: Fix incorrect default for whereEric Wieser2017-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | None would be cast to False, which is the opposite of the intended default!
| * | | | | ENH: Improve speed of np.copyto(..., where=True/False)Eric Wieser2017-07-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | This could be useful inside maskedarray
* | | | | | ENH: Improve MaskedArray.__repr__Eric Wieser2017-11-203-21/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Commas are now used within data and mask * dtypes are shown for float32, int8 etc, where they previously weren't * Wrapped fields are now correctly indented * Spaces removed around = to match PEP8
* | | | | | MAINT: Extract dtype printing code into helper functionEric Wieser2017-11-201-12/+25
| | | | | |
* | | | | | TST: Improve assertion error messagesEric Wieser2017-11-201-5/+8
| | | | | |
* | | | | | Merge pull request #10032 from ahaldane/remove_flexible_newlineEric Wieser2017-11-202-18/+49
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Remove newline before dtype in repr of arrays
| * | | | | | TST: Update tests for changed flexible newlineAllan Haldane2017-11-201-15/+14
| | | | | | |
| * | | | | | MAINT: Output appropriate newline before dtype in array reprsAllan Haldane2017-11-202-10/+42
| | |/ / / / | |/| | | | | | | | | | | | | | | | Fixes #9717
* | | | | | BUG: Have np.ma.dump and np.ma.load close their files (#10055)orbit-stabilizer2017-11-191-4/+8
| | | | | | | | | | | | | | | | | | Fixes #10045
* | | | | | STY: C style whitespace fixupsCharles Harris2017-11-191-35/+35
|/ / / / / | | | | | | | | | | | | | | | [ci skip]
* | | | | Merge pull request #10034 from ahaldane/legacy_scalarsCharles Harris2017-11-194-4/+229
|\ \ \ \ \ | | | | | | | | | | | | MAINT: legacy-printing-mode preserves 1.13 float & complex str
| * | | | | MAINT: legacy-printing-mode preserves 1.13 float & complex strAllan Haldane2017-11-184-4/+229
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #10029
* | | | | | BUG: Fix legacy printing mode check.Charles Harris2017-11-181-1/+1
| | | | | |
* | | | | | Merge pull request #10021 from eric-wieser/no-dtype-bool-reprAllan Haldane2017-11-1819-87/+119
|\ \ \ \ \ \ | | | | | | | | | | | | | | ENH: Don't show the boolean dtype in array_repr
| * | | | | | ENH: don't show boolean dtype, as it is impliedEric Wieser2017-11-1319-86/+88
| | | | | | |
| * | | | | | MAINT: Add helper function to determine whether to show dtype in reprEric Wieser2017-11-131-1/+31
| | |_|/ / / | |/| | | |
* | | | | | ENH: Make `np.in1d()` work for unorderable object arrays (#9999)Jörg Döpfert2017-11-182-2/+39
| |/ / / / |/| | | |
* | | | | Merge pull request #10030 from ahaldane/legacy_mode_fixesCharles Harris2017-11-182-53/+70
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Legacy mode specified as string, fix all-zeros legacy bug
| * | | | | MAINT: add back in errstate ignore in FloatingFormatAllan Haldane2017-11-172-3/+9
| | | | | |
| * | | | | MAINT: Add `.. versionadded ::` to parameter documentation.Charles Harris2017-11-171-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that the `legacy` keyword was added in NumPy 1.14.0. [ci skip]