Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created March 16, 2020 10:04
Show Gist options
  • Save aniruddha27/1eb6af9d4605baa213df49f916a6e65a to your computer and use it in GitHub Desktop.
Save aniruddha27/1eb6af9d4605baa213df49f916a6e65a to your computer and use it in GitHub Desktop.
# Total surface area of house
train['TotalSF'] = train.apply(lambda x: x['1stFlrSF'] + x['2ndFlrSF'] + x['TotalBsmtSF'], axis=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment