I am relatively new to Python and has been using np library. I am facing some problem in generating spikes following a Poisson distribution. You can see the details using the following link.
Random number generation following a Poisson distribution
The basic problem is that if we use an integer value for mean of Poisson distribution, we get a nice distribution (using code below). However for floating value of mean, we don't get a distribution.
spkt= np.random.poisson(5,1000) # Mean of 5 for 1000 samples
plt.hist(spkt)
plt.show()