From e7edf32e333d460c107d37351b6d2be533f8b3ef Mon Sep 17 00:00:00 2001 From: Amber Wang Date: Tue, 23 Dec 2025 23:17:44 -0500 Subject: [PATCH] Add .ffill() and .fillna() because there are some 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 c3e2bc0f..dabf91c7 100644 --- a/1-Introduction/04-stats-and-probability/notebook.ipynb +++ b/1-Introduction/04-stats-and-probability/notebook.ipynb @@ -384,7 +384,7 @@ "metadata": {}, "outputs": [], "source": [ - "heights = df['Height']\n", + "heights = df['Height'].fillna(method='pad')\n", "salaries = 1000+(heights-heights.min())/(heights.max()-heights.mean())*100\n", "print(list(zip(heights, salaries))[:10])" ]