From 6a62dfd7b4d9f3b1834594a8c1730541be7126ed Mon Sep 17 00:00:00 2001 From: Amber Wang Date: Wed, 24 Dec 2025 14:34:33 -0500 Subject: [PATCH] Add .ffill() and .fillna() because there are missing values in the height column --- 1-Introduction/04-stats-and-probability/notebook.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-Introduction/04-stats-and-probability/notebook.ipynb b/1-Introduction/04-stats-and-probability/notebook.ipynb index dabf91c7..423404dc 100644 --- a/1-Introduction/04-stats-and-probability/notebook.ipynb +++ b/1-Introduction/04-stats-and-probability/notebook.ipynb @@ -487,7 +487,7 @@ "metadata": {}, "outputs": [], "source": [ - "np.corrcoef(df['Height'],df['Weight'])" + "np.corrcoef(df['Height'].ffill(),df['Weight'])" ] }, {