Divides ordered data in nearly equal sizes. The quantile 50% represents the median, and one of the most common quantiles is called the quartile, which splits the data into four parts of 25% each. However, the position measurements are not sufficient to characterize the distribution of data, ...
defget_quantile_count(group, q=0.5): group= group.sort_index(by='prop', ascending=False)returngroup.prop.cumsum().searchsorted(q)+1defvariety_growth(top1000):'''show the plot of sum of top1000.prop by year and sex and the plot of number of the popular names in top 50% :param top...