Math, asked by mantavya4704, 1 year ago

Valueerror: the least populated class in y has only 1 member, which is too few. The minimum number of groups for any class cannot be less than 2.

Answers

Answered by topanswers
6

Value error occurs when there is an error in the value that has been inputted.

Every field has a fixed field length.

As the error says, the number of members is very less.

That is, according to the condition, there should be at least two members.

As the class y has only 1 member, it did not meet the requirement or condition and so it resulted in an error.

This error can be debugged by increasing the number of members in class y to be more than 2.

Similar questions