Clarifying challenge and removing unnecessary step #365
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Setting sex to x is not used in the next step of the challenge.
When I took the course, challenge 1 in the "Challenge - Putting it all together" section of the lesson 03-index-slice-subset was a bit confusing.
The Lesson guide shows this solution:
This returns:
2511, which is the same as:However, as written in the lesson guide, setting 'sex' to 'x' serves no purpose because the len() value is for the whole new DataFrame, 'sex' is not used to count anything. Setting the value of the 'sex' column to x, then asking about the null values in the DataFrame was confusing because it could be asking for the null values in 'sex' only:
which returns
0, or in all the columns of the new DataFrame:which returns
2449.With the proposed edit in the lesson, the lesson guide could be:
2511TrueHope this makes sense, or maybe I missed something?