From 0e58af5f565465673839bf1e8d0d76b30ec834ef Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 2 Feb 2026 20:10:23 +0000 Subject: [PATCH] Replace 0s in experience with median value Replace zero values in experience column with median. --- ML/2_linear_reg_multivariate/Exercise/exercise_answer.ipynb | 3 +++ 1 file changed, 3 insertions(+) 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,