C2W2 - covariance_matrix_from_examples

I’ve been stuck in this problem for a while. I have:
cov(x.reshape((-1, n_features)), rowvar=False) and get this error

Any help would be appreciated!

I assume you assigned that result to the variable covary and then returned it. I tried exactly that with your code and it worked for me.

Oh boy. I didn’t add the return part… usually the assignment cover that part so I wasn’t even thinking. It works now. Thank you!!

I will delete this because I’m sharing my code…