Skip to content

Commit 8289d51

Browse files
authored
Chapter 10 production polish (#142)
* Remove top level imports and add warning supression * Remove commented out sections * Remove unnecessary assignment, set the seed properly, and use value_counts instead of manual computation * Replace for loop with list comprehension * Use value_counts instead of manual computation * Fix typo * Correct viz syntax * Remove unnecessary assignment, and simplify computation * Remove unnecessary second loop * Simplify plotting syntax and clarify variable name * Simplify comparison plot of sample sizes * Use bullets to make points clearer * Remove display option * Remove incorrect query for means * Reduce height to make histograms easier to read * Change from sklearns `resample` and for loops to keep using `.sample` and list comprehensions * Simplify visualization code * Fix minor formatting and wording issue * Clarify language around sampling * Switch to orange annotations for better contrast * Improve plotting syntax and remove re-specification of seed * Change to actual number of samples * Round to one decimal to reduce noise * Round histogram limits more nicely * Reformat and improve the explanation of the bootstrapped mean calculation * Add description about quantiles * Link to python version of worksheets * Explain the name param in reset index * Fix typo * Clarify concatenation * Move rename last so we can use the same rename syntax students are used to
1 parent 9255d54 commit 8289d51

File tree

1 file changed

+299
-556
lines changed

1 file changed

+299
-556
lines changed

0 commit comments

Comments
 (0)