[Scipy-svn] r4833 - trunk/scipy/stats

scipy-svn@scip... scipy-svn@scip...
Sat Oct 25 05:29:32 CDT 2008


Author: cdavid
Date: 2008-10-25 05:29:28 -0500 (Sat, 25 Oct 2008)
New Revision: 4833

Modified:
   trunk/scipy/stats/stats.py
Log:
Forgot to add one file for #760 fix.

Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2008-10-25 09:26:32 UTC (rev 4832)
+++ trunk/scipy/stats/stats.py	2008-10-25 10:29:28 UTC (rev 4833)
@@ -489,10 +489,7 @@
     - numpy.median has a ddof argument to replace bias in a more general manner.
       scipy.stats.median(a, bias=True) can be replaced by numpy.median(x,
 axis=0, ddof=1).""", DeprecationWarning)
-    a, axis = _chk_asarray(a, axis)
-    if axis != 0:
-        a = np.rollaxis(a, axis, 0)
-    return np.median(a)
+    return np.median(a, axis)
 
 def mode(a, axis=0):
     """Returns an array of the modal (most common) value in the passed array.



More information about the Scipy-svn mailing list