-
-
Save mwaskom/de44147ed2974457ad6372750bbe5751 to your computer and use it in GitHub Desktop.
How can I add normal distribution over histogram? Using distplot it is seaborn.distplot(series, fit=scipy.stats.norm)
. But none of hisplot and displot has the"fit" argument
Noted. Thanks
Thank you. That was useful.
This is very helpful. Thank you.
getting unexpected keyword argument 'hist' when I try to disable histogram, when I am trying to just show density curve
ax1 = sns.displot(df['price'], hist=False, color="r", label="Actual Value") sns.displot(Yhat, hist=False, color="b", label="Fitted Values" , ax=ax1)1195 func = getattr(self, f"set_{k}", None) 1196 if not callable(func): -> 1197 raise AttributeError( 1198 errfmt.format(cls=type(self), prop_name=k)) 1199 ret.append(func(v)) 1200 if ret:
AttributeError: Rectangle.set() got an unexpected keyword argument 'hist'
You have to use kind="kde" and remove hist="False" like the code below:
ax1 = sns.displot(df['price'], kind="kde", color="r", label="Actual Value")
sns.displot(Y_hat, color="b", kind="kde", label="Fitted Values", ax=ax1)
Thank you for the explanations!
Thanks, good stuff!
Thanks, is perfect
Good Explaination
cool, now I know what to do lol.
thanks
Thank you sir...This notebook was a great help
Thanks, it was a great...
Hello, thanks for your guidness. I try your help untill in[12] but i get this message name 'df ' is not defined. please help to solve this problem. my python version is 3.11.
can your share your code to fix the error
I guess you figured out that df is just the variable Mr. Waskom used for his dataset.
Not sure who manages this webpage , but this still refers to distplot
Not sure who manages this webpage , but this still refers to distplot
Looks like it has been updated now
Thank you for this 🚀
Thank you for this helpful information
can your share your code to fix the error