Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Created January 16, 2021 17:47
Show Gist options
  • Save john-adeojo/cdc4c8d2871061d24cd9166e405bc357 to your computer and use it in GitHub Desktop.
Save john-adeojo/cdc4c8d2871061d24cd9166e405bc357 to your computer and use it in GitHub Desktop.
Plot histogram for saleprice
import seaborn as sns
import matplotlib
import matplotlib.pyplot as plt
x = Train.SalePrice
sns.set_style('whitegrid')
sns.distplot(x)
plt.show()
Train['SalePrice_log'] = np.log(Train.SalePrice)
x = Train.SalePrice_log
sns.distplot(x)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment