I have a correct code with output as expected, but I got 0/100 and I failed the assignment
Apparently your code is not entirely correct, otherwise you would not get 0’s from the grader.
I have a correct code with expected output for C2W4 How can I solve it ?
There was a problem compiling the code from your notebook. Details:
Found unknown categories [0, 5, 7, 10, 14, 21] in column 0 during transform
I have a correct code with expected output for C2W4 How can I solve it ?
There was a problem compiling the code from your notebook. Details:
Found unknown categories [0, 5, 7, 10, 14, 21] in column 0 during transform
I assume you believe your code is correct because it passes the tests in the notebook.
The tests in the notebook are not comprehensive. They do not prove your code is perfect.
The grader uses different tests to evaluate your code.
Apparently your code is generating category values that the grader does not expect to see.