diff options
author | Ethan Kruse <eakruse@uw.edu> | 2015-10-19 13:29:01 -0700 |
---|---|---|
committer | Ethan Kruse <eakruse@uw.edu> | 2015-10-21 15:46:49 -0700 |
commit | 5caf4c932e43c47d73fad761e3257bb0d4551cc2 (patch) | |
tree | 963b87fbb2b55b64bc41e0148a6fbb1f9d5bde26 /numpy/core/function_base.py | |
parent | 17146b2a873e835630ad58d00b73e97ba1fdb214 (diff) | |
download | numpy-5caf4c932e43c47d73fad761e3257bb0d4551cc2.tar.gz |
BUG: Make median work for empty arrays (issue #6462)
np.median([]) returns NaN. Fixes bug/regression that raised an IndexError.
Added tests to ensure continued support of empty arrays.
Diffstat (limited to 'numpy/core/function_base.py')
0 files changed, 0 insertions, 0 deletions