How to select only missing values for testing the model?
You could use the pd.isna() from pandas library.
It will return a boolean array that you can use for filtering your data.
I am working on logistic regression project where I have 850 observations and 8 variables and in this, I found 150 missing values and I have decided to use these values as test data. How can I take only missing values as test data in python?
I am still learning data science if there's a mistake in this approach please let me know.
Thank you :)