I have some NaN values in my data and I cannot replace it with median or something else.

Now I have to check out the correlation, using scatter plot and Pearson correlation.

Should I drop these NaNs or there is no difference? Actually, I see the difference, but a very, very small difference. What is the best solution here?

  • $\begingroup$ Is the very, very small difference important? It might depend on how the specific pearson correlation function you're using deals with NaNs $\endgroup$
    – WBM
    Mar 14 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.