October 2018
Beginner to intermediate
676 pages
18h 30m
English
Let's take one more example of how the logarithmic scale can be used. Let's say that within an organization, employees are classified into five categories based on their position. Each of these five categories is further split into men and women. For each of these 10 categories (five men and five women), we have the average salary and the standard deviation. This data is plotted to see how salary data is distributed across groups of men and women.
Here is the code and how it works:
import matplotlib.pyplot as pltimport numpy as np
menMeans = [3, 10, 100, 500, 50]menStd = [0.75, 2.5, 25, 125, 12.5]womenMeans ...
Read now
Unlock full access