Created
March 12, 2020 06:54
-
-
Save aniruddha27/516c274e199064dddf5e974f3f08f6dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df2 = df.copy() | |
df2['Age_at_joining'] = df.apply(lambda x: x['Age'] - x['Years of service'],axis=1) | |
X = df2.drop(['Age','Years of service','Salary'],axis=1) | |
calc_vif(X) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment