text_plain_output_1.png
from sklearn.feature_selection import VarianceThreshold as VT
var_thres = VT(threshold=0)
var_thres.fit(X_train)

const_cols = [col for col in X_train.columns if col not in X_train.columns[var_thres.get_support()]]
print(const_cols)