4.2. covid19_stats.engine module
This contains all the back-end functionality used by the CLI programs (see using_the_cli
), and two fairly simple utility functions.
- covid19_stats.engine.find_plausible_maxnum(maxnum)
Returns a default plausible limit, for the plotting of COVID-19 cumulative cases and deaths located in
viz
.
- covid19_stats.engine.get_string_commas_num(num)
This is the secret-sauce of formatting integers as strings with commas for every 3 digits. For example,
1234
becomes “1,234”. I copied code from this location.
- covid19_stats.engine.get_string_commas_num_float(num)
This is the secret-sauce of formatting floats as strings with commas for every 3 digits. For example,
1234.56
becomes “1,234.56”. I copied code from this other location.