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