I'm doing a project on the Boston Housing dataset and i'm trying to plot a distribution line on top of the histogram
Histogram:
# visualize the target variable in a histogram
# draw a mean line
plt.axvline(boston_data.MEDV.mean(), color='k', linestyle='dashed', linewidth=1)
### REMOVED min_ylim, max_ylim = plt.ylim()
plt.text(boston_data.MEDV.mean()*1.1, max_ylim*35, 'Mean: {:.2f}'.format(boston_data.MEDV.mean()))
# show the histogram for our target variable
boston_data.MEDV.hist(bins=50)
Distribution Line:
# draw a distribution line
s = boston_data['MEDV']
ax = s.plot.kde()
Can the line be drawn on top of the histogram?
thx in advance
(EDIT) This is what the plot looks like and what i would like to do is draw a distribution line on top of the histogram to show its a normal distribution (despite some outliers)