"How many products account for 80 percent of revenue" is the same question as a cumulative share, and so is every Pareto chart, every explained-variance plot and every top-k coverage check.
Write cumulative_share(x).
x is a 1D array of non-negative numbers. Return an array of the same length where entry i is the share of the total contributed by everything up to and including position i.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in