I am working on titanic data set but when I try to test my logistic regression model it gives this error.
Input contains NaN, infinity or a value too large for dtype('float64')
I have tried these code snippets to check whether my data has NaN/Inf or not.
np.any(np.isnan(test_df))
This return True
np.all(np.isfinite(test_df))
This returns False
Please tell me what do these returned values mean that whether my test data has NaN or Infinity value or not