Once again ran into an issue where my program out matches expected output, but the grader doesn’t recognize the results and doesn’t grade.
The error message is -
"There was an error grading your submission. Details:
operands could not be broadcast together with shapes (4,2,2) (4,) "
Screenshot attached for reference
{mentor edit: code link removed - not allowed by the Code of Conduct}
Hello, @msudha,
There shouldn’t be 2 values.
It should look like the following:
There should be 4 prints with each one contains only one correlation value. Without revealing further on how to correct it, I recommend you to check out the difference between pd.Series.corr
and pd.DataFrame.corr
. In principle, you can achieve the same result and pass the grader with either method, but one of them will take one more step.
Cheers,
Raymond
Hi Raymond
That worked! Thanks for the feedback…
I learn something new everyday.
Sudha
1 Like
You are welcome, Sudha @msudha 
Cheers,
Raymond