diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-11-23 19:08:51 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-23 19:08:51 -0600 |
commit | 983bbb5ed2495e034b437a0b58a69371d4dfed74 (patch) | |
tree | 91f999ac716fb1814d278dc6913b9d72e8c3f3b3 /numpy/doc/structured_arrays.py | |
parent | 5287788713133ca467a3f585dad371dc188dc6b2 (diff) | |
parent | 61371de744b363eacdb2ae277c33d365164380f3 (diff) | |
download | numpy-983bbb5ed2495e034b437a0b58a69371d4dfed74.tar.gz |
Merge pull request #11526 from ahaldane/add_struct_helper_funcs_redo
ENH: add multi-field assignment helpers in np.lib.recfunctions
Diffstat (limited to 'numpy/doc/structured_arrays.py')
-rw-r--r-- | numpy/doc/structured_arrays.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py index ab97c5df6..42711a7c0 100644 --- a/numpy/doc/structured_arrays.py +++ b/numpy/doc/structured_arrays.py @@ -443,6 +443,15 @@ behavior since Numpy 1.7. >>> repack_fields(a[['a','c']]).view('i8') # supported 1.15 and 1.16 array([0, 0, 0]) + The :module:`numpy.lib.recfunctions` module has other new methods + introduced in numpy 1.16 to help users account for this change. These are + :func:`numpy.lib.recfunctions.structured_to_unstructured`, + :func:`numpy.lib.recfunctions.unstructured_to_structured`, + :func:`numpy.lib.recfunctions.apply_along_fields`, + :func:`numpy.lib.recfunctions.assign_fields_by_name`, and + :func:`numpy.lib.recfunctions.require_fields`. + + Assigning to an array with a multi-field index will behave the same in Numpy 1.15 and Numpy 1.16. In both versions the assignment will modify the original array:: |