Skip to content

Commit 40c9915

Browse files
committed
Clarifying challenge and removing unnecessary step
Setting sex to x is not used in the next step of the challenge.
1 parent c0fd5f1 commit 40c9915

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

_episodes/03-index-slice-subset.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,9 @@ asking Python to select rows that have a `NaN` value of weight.
529529
> ## Challenge - Putting it all together
530530
>
531531
> 1. Create a new DataFrame that only contains observations with sex values that
532-
> are **not** female or male. Assign each sex value in the new DataFrame to a
533-
> new value of 'x'. Determine the number of null values in the subset.
532+
> are **not** female or male. Print the number of rows in this new DataFrame.
533+
> Verify the result by comparing the number of rows in the new DataFrame with
534+
> the number of rows in the surveys DataFrame where sex is null.
534535
>
535536
> 2. Create a new DataFrame that contains only observations that are of sex male
536537
> or female and where weight values are greater than 0. Create a stacked bar

0 commit comments

Comments
 (0)