title: Using kstest from scipy.stats within python - it seems I'm calling the cdf() wrong?
body: <p>I've been using kstest to try to see if a distribution fits my data, going through the discrete distributions from this <a href="https://docs.scipy.org/doc/scipy/reference/stats.html#module-scipy.stats" rel="nofollow noreferrer">link</a>. I've managed to get to logser (logarithmic discrete random variable), but I can't figure out how to make this work.</p>
  <p>I've made it work for other distributions using the line below, where the 3 arguments are n,alpha and beta.</p>
  <pre><code>stat, p_val = kstest(bqTableData['total_diff'], 'betabinom', args=(75,0.2,0.25))
  </code></pre>
  <p>However, using the below line is giving me the error 'cdf() argument after * must be an iterable, not float'. It seems to not like me calling logser in the same way as other distributions (though it recognises logser in and of itself, as it notes that I have forgotten argument p when not including arg)</p>
  <pre><code>stat, p_val = kstest(logser.pmf(x, p), 'logser',0.95)
  </code></pre>
  <p>Is there anything I'm doing wrong with this line? I created x using the below</p>
  <pre><code>x = np.arange(logser.ppf(0.01, p),
                logser.ppf(0.99, p))
  </code></pre>