evalml.problem_types.
detect_problem_type
Ignores missing and null data
y (pd.Series) – the target labels to predict
ProblemType Enum
ProblemType
Example
>>> y = pd.Series([0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1]) >>> problem_type = detect_problem_type(y) >>> assert problem_type == ProblemTypes.BINARY