Python Numpy TypeError: ufunc 'isfinite' not supported for the input types : <p>Here's my code:</p>

<pre><code>def topK(dataMat,sensitivity):
    meanVals = np.mean(dataMat, axis=0)
    meanRemoved = dataMat - meanVals
    covMat = np.cov(meanRemoved, rowvar=0)
    eigVals,eigVects = np.linalg.eig(np.mat(covMat))
</code></pre>

<p>I get the error in the title on the last line above.  I suspect has something to do with the datatype, so, here's an image of the variable and datatype from the Variable Explorer in Spyder:</p>

<p><a href="https://i.stack.imgur.com/i1cCj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/i1cCj.png" alt="enter image description here"></a></p>

<p>I've tried changing <strong>np.linalg.eig(np.mat(covMat))</strong> to <strong>np.linalg.eig(np.array(np.mat(covMat)))</strong> and to <strong>np.linalg.eig(np.array(covMat))</strong>, nothing works.  Any ideas?  (an example would be great!)</p>
