AssertionError: If the target is fully correlated with other feature, that feature must be the best split. Expected 1, got 0

Hi team,

Can someone help me with the error I am getting? I have followed all the steps and written the code correctly, but this error is popping up. I have linked the screenshot.

When you get an assert error from a unit test, it means your code was not written correctly.
You have a bug in your code.

Thank you, it is working now.