Message313950
> then the answer being 90 is correct,right?
How do you deduce that? Why 90 rather than 85 (or 87.5, or some other value)?
For what it's worth, NumPy gives a result of NaN for the median of an array that contains NaNs:
>>> np.median([1.0, 2.0, 3.0, np.nan])
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/lib/function_base.py:4033: RuntimeWarning: Invalid value encountered in median
r = func(a, **kwargs)
nan |
|
Date |
User |
Action |
Args |
2018-03-16 14:32:36 | mark.dickinson | set | recipients:
+ mark.dickinson, steven.daprano, maheshwark97, dcasmr |
2018-03-16 14:32:36 | mark.dickinson | set | messageid: <1521210756.02.0.467229070634.issue33084@psf.upfronthosting.co.za> |
2018-03-16 14:32:36 | mark.dickinson | link | issue33084 messages |
2018-03-16 14:32:35 | mark.dickinson | create | |
|