Skip to content

Instantly share code, notes, and snippets.

@oscar-defelice
Created March 15, 2021 17:33
Show Gist options
  • Save oscar-defelice/3d1ca026b2ea2e2a340af48c72332766 to your computer and use it in GitHub Desktop.
Save oscar-defelice/3d1ca026b2ea2e2a340af48c72332766 to your computer and use it in GitHub Desktop.
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