Value Error in LogisticRegression

While implementing logistic regression code m getting valueerror.
Can anyone ls help me with it?

Your target variable (y) may not be of the right type. Try to find it’s data type.
It shouldn’t be an object.

Eg - If your labels are 0,1, you can convert it to int


© Copyright 2013-2019 Analytics Vidhya