We Are Going To Discuss About AttributeError: ‘Rectangle’ object has no property ‘norm_hist’ – python. So lets Start this Python Article.
AttributeError: ‘Rectangle’ object has no property ‘norm_hist’ – python
- How to solve AttributeError: 'Rectangle' object has no property 'norm_hist' – python
I had this same error and my solution was
changingffn/core.py
(it was the first file in the error list, your file is different I see, but same principle norm something must be deprecated?)
fromax = ser.hist(bins=bins, figsize=figsize, normed=True, **kwargs)
toax = ser.hist(bins=bins, figsize=figsize, density=True, **kwargs)
point being: changing the normed to density
i.e. here norm_hist to density - AttributeError: 'Rectangle' object has no property 'norm_hist' – python
I had this same error and my solution was
changingffn/core.py
(it was the first file in the error list, your file is different I see, but same principle norm something must be deprecated?)
fromax = ser.hist(bins=bins, figsize=figsize, normed=True, **kwargs)
toax = ser.hist(bins=bins, figsize=figsize, density=True, **kwargs)
point being: changing the normed to density
i.e. here norm_hist to density
Solution 1
I had this same error and my solution was
changing ffn/core.py
(it was the first file in the error list, your file is different I see, but same principle norm something must be deprecated?)
from
ax = ser.hist(bins=bins, figsize=figsize, normed=True, **kwargs)
to
ax = ser.hist(bins=bins, figsize=figsize, density=True, **kwargs)
point being: changing the normed to density
i.e. here norm_hist to density
Original Author LakeConstanceCH Of This Content
Solution 2
According to the documentation, displot
indeed does not have this parameter.
your are confused with the deprecated distplot
function (here) that has it.
Original Author Lior Cohen Of This Content
Conclusion
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.