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

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Sep 26 00:06:00 EDT 2008


Author: cdavid
Date: 2008-09-25 23:05:42 -0500 (Thu, 25 Sep 2008)
New Revision: 4749

Modified:
   trunk/scipy/stats/stats.py
Log:
Deprecate stats.corrcoef.


Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2008-09-26 04:05:03 UTC (rev 4748)
+++ trunk/scipy/stats/stats.py	2008-09-26 04:05:42 UTC (rev 4749)
@@ -1422,6 +1422,12 @@
     If rowvar is True, then each row is a variables with
     observations in the columns.
     """
+    warnings.warn("""\
+scipy.stats.corrcoef is deprecated; please update your code to use numpy.corrcoef.
+Please note that:
+    - numpy.corrcoef rowvar argument defaults to true, not false
+    - numpy.corrcoef bias argument defaults to 1, not 0
+""", DeprecationWarning)
     if y is not None:
         x = np.transpose([x,y])
         y = None




More information about the Scipy-svn mailing list