Coursera C2_W4_Decision_Tree_with_Markdown UNQ_C3 error

I am getting the expected answers, but still cannot pass. The code is saying that it is receiving nan from somewhere instead of 0. I am not sure where this error is coming from. Even tried using the exact same code they provide in the hints. I have passed all the other tests in this assignment.

You are only getting some of the expected results, but not all of them.

It appears your code for compute_information_gain() does not give the correct results for one of the tests.

You can open the public_tests.py file and read the tests that are used by compute_information_gain_test().

This should give you a big clue as to exactly how the problem is happening.