I am trying to complete an assignment that requires me to create a histogram of a poisson distribution. I am attempting to use scipy's poisson functions, specifically poisson.rmv() to generate the distribution. Yet I am unable to use this function and keep getting the message function' object has no attribute 'rvs' although I know there is one. What could be the problem?
from scipy.stats import poisson
x = poisson.rvs(mu=3, size=1000)
plt.hist(x, density=True, edgecolor='black')