Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notebooks/machine_learning/raw/tut3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/pandas/raw/tut_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
]
Expand Down Expand Up @@ -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."
]
},
{
Expand Down
Loading