Created
March 16, 2020 09:46
-
-
Save aniruddha27/c8983213cb6f0069d9557c85efeb2d92 to your computer and use it in GitHub Desktop.
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
#train rows | |
ntrain = train.shape[0] | |
#save log transform of target feature | |
target = np.log(train['SalePrice']) | |
#drop Id and SalePrice from train dataframe | |
train.drop(['Id','SalePrice'],inplace=True,axis=1) | |
#store test Id | |
test_id = test['Id'] | |
#drop test Id | |
test.drop(['Id'],inplace=True,axis=1) | |
#concatenate train and test dataframes | |
train = pd.concat([train,test]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment