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

scipy-svn@scip... scipy-svn@scip...
Sun Nov 28 07:31:22 CST 2010


Author: rgommers
Date: 2010-11-28 07:31:22 -0600 (Sun, 28 Nov 2010)
New Revision: 6955

Modified:
   trunk/scipy/stats/stats.py
Log:
DOC: clean up old-style docstring.

Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2010-11-28 09:01:14 UTC (rev 6954)
+++ trunk/scipy/stats/stats.py	2010-11-28 13:31:22 UTC (rev 6955)
@@ -348,13 +348,16 @@
 def _nanmedian(arr1d):  # This only works on 1d arrays
     """Private function for rank a arrays. Compute the median ignoring Nan.
 
-    :Parameters:
-        arr1d : rank 1 ndarray
-            input array
+    Parameters
+    ----------
+    arr1d : ndarray
+        Input array, of rank 1.
 
-    :Results:
-        m : float
-            the median."""
+    Results
+    -------
+    m : float
+        The median.
+    """
     cond = 1-np.isnan(arr1d)
     x = np.sort(np.compress(cond,arr1d,axis=-1))
     if x.size == 0:



More information about the Scipy-svn mailing list