Hi guys, python returns an error while plotting a histogram in mcerp module. I am able to plot Kernel Density Estimate plot , but plotting a histogram returns an error: TypeError: 'numpy.float64' object cannot be interpreted as an integer. I am using Python 3.6 64 bit for Windows
This is a code that returns an error:
This is a code that returns an error:
from mcerp import * from matplotlib import pyplot as plt x1 = N(24,1) x2 = N(37,4) x4=x1*x2 x4.plot(hist=True) # if I change to x4.plot() the code works fine, but returns KDE plot only plt.show()
Moderator Larz60+: Added python tags -- Please do this in the futue (see help: BBcode)