From c04dabbea17a9d28cf675bca8ddeee84c19e7399 Mon Sep 17 00:00:00 2001 From: Sven van der Burg Date: Wed, 19 Jun 2024 11:53:44 +0200 Subject: [PATCH] Update fertility-prediction.Rmd --- episodes/fertility-prediction.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/episodes/fertility-prediction.Rmd b/episodes/fertility-prediction.Rmd index 5be57da..240e81e 100644 --- a/episodes/fertility-prediction.Rmd +++ b/episodes/fertility-prediction.Rmd @@ -295,8 +295,8 @@ How many samples do we have left? # The rows where any of the features is NaN X_isna = features.isna().any(axis=1) -features = features.drop(features[y_isna].index) -outcome = outcome.drop(outcome[y_isna].index) +features = features.drop(features[X_isna].index) +outcome = outcome.drop(outcome[X_isna].index) ``` ```python