NoVarianceDataCheck.
validate
Check if any of the features or if the labels have no variance (1 unique value).
X (pd.DataFrame) – The input features.
y (pd.Series) – The labels.
list (DataCheckWarning or DataCheckError), list of warnings/errors corresponding to features or labels with no variance.