Skip to content

Instantly share code, notes, and snippets.

@ogyalcin
Created August 2, 2018 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogyalcin/688a8783d88e366f398cf100c1f04d0c to your computer and use it in GitHub Desktop.
Save ogyalcin/688a8783d88e366f398cf100c1f04d0c to your computer and use it in GitHub Desktop.
Combining train and test datasets to check the missing values.
import pandas as pd
train = pd.read_csv("train.csv")
test = pd.read_csv("test.csv")
combined = pd.concat([train.drop('Survived',axis=1),test])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment