[Scipy-tickets] [SciPy] #1259: stats.spearmanr causes unnecessary divide-by-zero warnings

SciPy Trac scipy-tickets@scipy....
Sun Oct 3 12:22:33 CDT 2010


#1259: stats.spearmanr causes unnecessary divide-by-zero warnings
-------------------------+--------------------------------------------------
 Reporter:  zachrahan    |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:  0.9.0   
Component:  scipy.stats  |     Version:  devel   
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by josefpktd):

 Following the same idea, it would be possible to calculate the pvalue only
 for the lower (or upper) triangular matrix without the diagonal, and fill
 a np.zeros array with it.

 using np.tril_indices

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1259#comment:4>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list