Skip to content

Instantly share code, notes, and snippets.

@fuwiak
Created April 14, 2020 16:52
Show Gist options
  • Save fuwiak/ae24625fbf33b56291dc56cfe31f2bb4 to your computer and use it in GitHub Desktop.
Save fuwiak/ae24625fbf33b56291dc56cfe31f2bb4 to your computer and use it in GitHub Desktop.
#Correlation with output variable
cor_target = abs(cor["Sales"])
#Selecting highly correlated features
relevant_features = cor_target[cor_target>0.9]
relevant_features # you have columns highly correlated with Sales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment