demo_numpy_random_zipf2.py:
from numpy import random import matplotlib.pyplot as plt import seaborn as sns x = random.zipf(a=2, size=1000) sns.distplot(x[x<10], kde=False) plt.show()
C:\Users\My Name>python demo_numpy_random_zipf2.py