I have the following situation
from sklearn.linear_model import LogisticRegression
import pandas as pd
x = pd.DataFrame({'A':[1,3,8,6,1],'B':[2,6,9,3,2]})
y = pd.DataFrame({'C':[8,6,3,6,1]})
How do I make this happen?
LogisticRegression( ).fit(x, y)
I have the following answer:
ValueError: Unknown label type: array([8,6,3,6,1]) #valores do y
What is the right way?