Skip to content

Instantly share code, notes, and snippets.

@salma71
Created December 14, 2019 20:48
Show Gist options
  • Select an option

  • Save salma71/374901b9e133c29eecf7c3c14df09652 to your computer and use it in GitHub Desktop.

Select an option

Save salma71/374901b9e133c29eecf7c3c14df09652 to your computer and use it in GitHub Desktop.
checking how many na in dataset
# clean up NAs
sapply(train_df, function(x) sum(is.na(x)))
# PassengerId Survived Pclass Name Sex Age SibSp Parch Ticket Fare
# 0 0 0 0 0 177 0 0 0 0
# Cabin Embarked
# 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment