AttributeError: ‘Rectangle’ object has no property ‘norm_hist’ – python

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

  1. How to solve AttributeError: 'Rectangle' object has no property 'norm_hist' – python

    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

  2. AttributeError: 'Rectangle' object has no property 'norm_hist' – python

    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

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.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment