title: QQ Plot for Poisson Distribution in Python
body: <p>I've been trying to make a QQ plot in python for a poisson distribution. Here is what I have so far:</p>
  
  <pre><code>import numpy as np
  import statsmodels.api as sm
  import scipy.stats as stats
  pois = np.random.poisson(2.5, 100)  #creates random Poisson distribution with mean = 2.5
  fig =sm.qqplot(pois, stats.poisson, line = 's')
  plt.show()
  </code></pre>
  
  <p>Whenever I do this, I get "AttributeError: 'poisson_gen' object has no attribute 'fit'"</p>
  
  <p>When googling that error, I found a lot of people saying that there is no Poisson.fit available. I'm pretty sure that the qqplot function is calling Poisson.fit. Does this mean that the qqplot function will not work with the Poisson distribution? If the qqplot function does not work with Poisson distributions, how would you recommend generating this plot? Any recommendations would be appreciated. </p>