diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-07-29 09:28:10 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-07-29 09:28:10 -0700 |
commit | f9c225f2806adb195fbf3434b416746cdfb02c2c (patch) | |
tree | a0809bf9c19d56b74f37461787d9be98c06ce283 /numpy/doc/structured_arrays.py | |
parent | 0f44fe46cfe9c15dffe4c4eff63c3a9de222d93d (diff) | |
parent | c0a61b2e16b6909df5d406087ed0fd923d9edfbd (diff) | |
download | numpy-f9c225f2806adb195fbf3434b416746cdfb02c2c.tar.gz |
Merge pull request #3559 from hklemm/patch-1
Update structured_arrays.py
Diffstat (limited to 'numpy/doc/structured_arrays.py')
-rw-r--r-- | numpy/doc/structured_arrays.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py index be3d5cc7d..304184d0d 100644 --- a/numpy/doc/structured_arrays.py +++ b/numpy/doc/structured_arrays.py @@ -191,12 +191,11 @@ Notice that `x` is created with a list of tuples. :: (1.0, [[2.0, 6.0], [2.0, 6.0]])], dtype=[('x', '<f4'), ('value', '<f4', (2, 2))]) -Notice that the fields are always returned in the same order regardless of -the sequence they are asked for. :: +The fields are returned in the order they are asked for.:: >>> x[['y','x']] - array([(1.5, 2.5), (3.0, 4.0), (1.0, 3.0)], - dtype=[('x', '<f4'), ('y', '<f4')]) + array([(2.5, 1.5), (4.0, 3.0), (3.0, 1.0)], + dtype=[('y', '<f4'), ('x', '<f4')]) Filling structured arrays ========================= |