I'm trying to create a density plot without histogram but it returns the error--- AttributeError: 'Rectangle' object has no property 'hist' How can I solve this error? FYI: y_train and yhat_train is 1D array
plt.figure(figsize=(16, 8))
ax1 = sns.displot(y_train, hist=False ,color='r', label='Actual value')
ax2 = sns.displot(yhat_train, hist=False ,color='b', label='Predicted value', ax=ax1)
plt.show()