If you want to remove the correlated variables from a dataframe, use feature_engine.DropCorrelatedFeatures
.
In the code above, I drop the variables with a correlation above 0.8.
If you want to remove the correlated variables from a dataframe, use feature_engine.DropCorrelatedFeatures
.
In the code above, I drop the variables with a correlation above 0.8.