DEV Community

Nilotpal Choudhury
Nilotpal Choudhury

Posted on

Answer: correlation between arrays in python

You need numpy.corrcoef:

In [8]:

np.corrcoef(a1,a2)
Out[8]:
array([[ 1.        ,  0.98198051],
       [ 0.98198051,  1.        ]])

Top comments (0)