Created
March 15, 2021 17:33
-
-
Save oscar-defelice/3d1ca026b2ea2e2a340af48c72332766 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import seaborn as sns | |
import matplotlib.pyplot as plt | |
# seaborn histogram | |
sns.distplot(boston_dataset.target, hist=True, kde=True, | |
bins=30, color = 'blue', | |
hist_kws={'edgecolor':'black'}) | |
# Add labels | |
plt.title('Histogram of target variable') | |
plt.xlabel('House examples') | |
plt.ylabel('Values'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment