diff --git a/ML/2_linear_reg_multivariate/Exercise/exercise_answer.ipynb b/ML/2_linear_reg_multivariate/Exercise/exercise_answer.ipynb index a270ce7a..f479f0fa 100644 --- a/ML/2_linear_reg_multivariate/Exercise/exercise_answer.ipynb +++ b/ML/2_linear_reg_multivariate/Exercise/exercise_answer.ipynb @@ -361,6 +361,9 @@ "d" ] }, +#after converting the NaaN values to zero then a numerical 0, why dont we find the median of the experience column then replace the median value with the 0? +median_experience = d.experience.median() +d.experience = d.experience.replace(value=median_experience, to_replace=0) { "cell_type": "code", "execution_count": 34,