My answer for Ex 2 of the Capstone project is exactly what the expected solution is and I’m also receiving what appears to be an incorrect error:
Failed test case: num_less_amount has an incorrect type
Expected:
<class ‘int’>,
but got:
<class ‘int’>.
Hi Kyle, and welcome to the Forum! Can you send your notebook to me via direct message? You can click on my name then the blue Message button. Thanks.
Hi! For learners who might have run into the same issue:
The problem here is the grader expects np.int64 instead of just int. We’ll push grader updates this week to address this. In the meantime, please use the .sum()
method instead of len()
when computing num_less_amount
. Hope this helps!
Using .count().max()
works. Thanks Chris for your help
1 Like