Capstone: Loan Interest Rates Ex 5 Problem

Hi,
My output for Ex 5 scatter plots matches the expected output but I’m getting a grader error

There was an error grading your submission. Details: operands could not be broadcast together with shapes (4,2,2) (4,)

I’ve tried restarting the notebook but it doesn’t resolve the error

I’m not a mentor for this course. So my reply is only general guidance.

The grader always uses different tests than those in the notebook. Matching the expected output in the notebook does not prove your code is perfect. The notebook’s built-in tests do not cover every possible error.

So, start by re-checking your code to be sure it will work with any size or shape of data.

Often the cause of grader errors is the use of global variables that the grader doesn’t provide.

Hopefully a mentor for this course will provide some other detailed guidance.

Hello, @aristofayns,

From the message you shared, my guess is that, instead of appending the correlation value as instructed (see below for reference), you were appending a dataframe of shape (2, 2).

image

I suggest you to do give it a check on what you were appending. It needs a value, not a dataframe.

Cheers,
Raymond