From ba610a31f9603ea582324abb072a2cd70066202d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Fri, 23 Oct 2026 04:07:13 -0400 Subject: [PATCH] docs: fix 3 typos in pandas and machine learning tutorial notebooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Léon Avic Simmons --- notebooks/machine_learning/raw/tut3.ipynb | 2 +- notebooks/pandas/raw/tut_3.ipynb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notebooks/machine_learning/raw/tut3.ipynb b/notebooks/machine_learning/raw/tut3.ipynb index 40e03048b..22d596fcb 100644 --- a/notebooks/machine_learning/raw/tut3.ipynb +++ b/notebooks/machine_learning/raw/tut3.ipynb @@ -181,7 +181,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Many machine learning models allow some randomness in model training. Specifying a number for `random_state` ensures you get the same results in each run. This is considered a good practice. You use any number, and model quality won't depend meaningfully on exactly what value you choose.\n", + "Many machine learning models allow some randomness in model training. Specifying a number for `random_state` ensures you get the same results in each run. This is considered a good practice. You can use any number, and model quality won't depend meaningfully on exactly what value you choose.\n", "\n", "We now have a fitted model that we can use to make predictions.\n", "\n", diff --git a/notebooks/pandas/raw/tut_3.ipynb b/notebooks/pandas/raw/tut_3.ipynb index 5472c45a3..dee38df1d 100644 --- a/notebooks/pandas/raw/tut_3.ipynb +++ b/notebooks/pandas/raw/tut_3.ipynb @@ -44,7 +44,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "`groupby()` created a group of reviews which allotted the same point values to the given wines. Then, for each of these groups, we grabbed the `points()` column and counted how many times it appeared. `value_counts()` is just a shortcut to this `groupby()` operation. \n", + "`groupby()` created a group of reviews which allotted the same point values to the given wines. Then, for each of these groups, we grabbed the `points` column and counted how many times it appeared. `value_counts()` is just a shortcut to this `groupby()` operation. \n", "\n", "We can use any of the summary functions we've used before with this data. For example, to get the cheapest wine in each point value category, we can do the following:" ] @@ -178,7 +178,7 @@ "\n", "Looking again at `countries_reviewed` we can see that grouping returns data in index order, not in value order. That is to say, when outputting the result of a `groupby`, the order of the rows is dependent on the values in the index, not in the data.\n", "\n", - "To get data in the order want it in we can sort it ourselves. The `sort_values()` method is handy for this." + "To get data in the order we want it in we can sort it ourselves. The `sort_values()` method is handy for this." ] }, {