Skip to content

Commit f611373

Browse files
discuss assign a bit more in inference
1 parent 0727d2e commit f611373

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/inference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,11 @@ expect our sample proportions from this population to vary for samples of size 4
250250

251251
We again use the `sample` to take samples of size 40 from our
252252
population of Airbnb listings. But this time we use a list comprehension
253-
to repeat an operation multiple time (as in the previous chapter).
254-
In this case we are taking 20,000 samples of size 40
255-
and to make it clear which rows in the data frame come
256-
which of the 20,000 samples,
257-
we also add a column called `replicate` with this information.
253+
to repeat the operation multiple times (as we did previously in {numref}`Chapter %s <clustering>`).
254+
In this case we repeat the operation 20,000 times to obtain 20,000 samples of size 40.
255+
To make it clear which rows in the data frame come
256+
which of the 20,000 samples, we also add a column called `replicate` with this information using the `assign` function,
257+
introduced previously in {numref}`Chapter %s <wrangling>`.
258258
The call to `concat` concatenates all the 20,000 data frames
259259
returned from the list comprehension into a single big data frame.
260260

0 commit comments

Comments
 (0)