Closed vitorvilela closed 9 months ago
Working with the notebook of Chapter 8, I needed to change the line
france = prior.copy()
by
from copy import copy france = copy(prior)
or
france = prior.copy(deep=True) to work properly with the copy method of the Pmf class.
france = prior.copy(deep=True)
copy
Pmf
Otherwise, the curves will overlap.
PS.: Initially I thought it was returning a reference, but the object ids are different. In my case:
id(prior): 139718265739216 id(france): 139718228051664
This was an error in version 0.7.1 of empiricaldist.
I have pushed version 0.7.2, which should work now -- just make sure you have the latest version.
Thanks for letting me know!
Working with the notebook of Chapter 8, I needed to change the line
france = prior.copy()
by
or
france = prior.copy(deep=True)
to work properly with thecopy
method of thePmf
class.Otherwise, the curves will overlap.
PS.: Initially I thought it was returning a reference, but the object ids are different. In my case: