vhmcck/python novice gapminder test branch #619
Closed
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.
Summary of changes - attempted second issue
Updated links - besides fixing the issue with the matplotlib link, I have deleted unnecessary (repetitive) links and added new links to this version of the episode (e.g., ‘transpose’ and ‘ggplot’). I also replaced the links to ‘tick_params’ and ’savefig’ as discussed.
Added text to improve clarity, readability, and flow. I personally found the bullet points useful for highlighting important information but not for providing instructions. Learners often need some sort of explanation preceding commands (rather than comments in between lines of code) and prefer small chunks of code. My suggested changes aim to make each step easier to digest.
Overall restructuring: corrected typos and missing words and rectified the format.
Additional comments and suggestions
I believe it would be best to label consistently the two axes in all plots - this is how we promote good habits :) Labels must also be consistent - i.e., ‘GPD per capita’ vs. ‘GPD per capita ($)’.
Many of the examples could build upon their predecessors. For instance, the example with the command below could also include time series, “fancier” styles, axis labels, etc.
Not sure that we need the ‘{: .language-python}’ after each command/group of commands?
Challenges:
Minima and maxima - making separate plots for ‘min()’ and ‘max()’ would be clearer. My proposed changes are included.
Correlations - “the example in the notes” should be provided as part of the instructions;’ describe()’ was not used up until this point in the episode. Also the ‘geopolitics’ explanation for the example of ‘idxmax()’ and ‘idxmin()’ may need more context; I tried to rephrase it but it needs to be polished, perhaps with a link to supporting information.
More correlations - is the command below correct to see the documentation for the ’plt.scatter()’ function? I get a NameError when trying to call it.