supprimer les variables avec la variance Python
from sklearn.feature_selection import VarianceThreshold
var_thr = VarianceThreshold(threshold = 0) #Removing constant variables
var_thr.fit(X_95)
concol_95 = [column for column in X_95.columns
if column not in X_95.columns[var_thr.get_support()]]
Sooi Versavel