So far, the code constructs "manually" a Zipf distribution in the function zipf_distribution and then gets each sample of such a distribution manually, in this code.
Instead, we should used the optimized functions of Python libraries, like in this post.
So far, the code constructs "manually" a Zipf distribution in the function
zipf_distributionand then gets each sample of such a distribution manually, in this code.Instead, we should used the optimized functions of Python libraries, like in this post.