Created
January 16, 2021 17:47
-
-
Save john-adeojo/cdc4c8d2871061d24cd9166e405bc357 to your computer and use it in GitHub Desktop.
Plot histogram for saleprice
This file contains 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 | |
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