diff options
author | Warren Weckesser <warren.weckesser@gmail.com> | 2019-10-08 11:05:26 -0400 |
---|---|---|
committer | Warren Weckesser <warren.weckesser@gmail.com> | 2019-10-08 11:05:26 -0400 |
commit | 5e9b5ec6352bee4b96cd4bbedfa17413111462b3 (patch) | |
tree | 11c1c8308e4a337b696bda257fb7996a3f9b4721 /numpy/core/fromnumeric.py | |
parent | d0b0c609cc614f3bc82a7cfcb98e34e939a3e8de (diff) | |
download | numpy-5e9b5ec6352bee4b96cd4bbedfa17413111462b3.tar.gz |
BUG: random: Use correct length when axis is given to shuffle.
When an axis argument was given, shuffle was using the original length of
the array instead of the length of the given axis. This meant that, for
example, if an array with shape (2, 10) was shuffled with axis=1, only the
first two columns were shuffled.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions