'Rows with targets with nans are removed.
GH-2392'

def test_target_with_nan(self):

    table = Table('iris')
    table.Y[5:10] = np.NaN
    self.send_signal('Data', table)
    coef1 = self.get_output('Coefficients')
    del table[5:10]
    self.send_signal('Data', table)
    coef2 = self.get_output('Coefficients')
    self.assertTrue(np.array_equal(coef1, coef2))
