adspace


How do you handle missing values in python or r?

Answer Posted / Hiba Jainab

In Python, missing values are typically represented by NaN (Not a Number) for numerical data and NaN or None for categorical data. In R, missing values are also represented by NA for both numerical and categorical data. To handle these missing values, you can use various methods like mean imputation (filling the missing value with the mean of the column), median imputation (filling the missing value with the median of the column), or using advanced techniques like k-nearest neighbors or multiple imputation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category