vif = pd.DataFrame() vif["vif"] = [variance_inflation_factor(X_scaled,i) for i in range(X_scaled.shape[1])] vif["Features"] = X.columns vif