Managing NaN in target variables (testing) Please can someone advise me on how to handle NaN in my target variables set? 

I've tried a variety of things but none is working. Here's what I've tried:


Imputing zeros (0) in Y_test
Replacing NaN with whitespace in the Y_test
Emptying the Y_test 


The dataset came already separated as training and test set. When I apply my logit classifier or any other classifier for that matter, it keeps returning a TypeError. 


  TypeError: '&lt;' not supported between instances of 'int' and 'str'


Please help!
Well, you can't do supervised learning on unlabeled data. Either you discard those records or you have to go semi-supervised way.