ValueError: RGBA sequence should have length 3 or 4

Viewed 1363

Getting error for this cell

x=(x-x.min())/(x.max()-x.min())
xtrain,xtest,ytrain,ytest=train_test_split(x,y,test_size=0.3)
wine.feature_names

f1='hue'
f2='proline'
basex=np.array(xtrain[[f1,f2]])
basey=np.array(ytrain)
xtest=np.array(xtest[[f1,f2]])
ytest=np.array(ytest)

x=pd.DataFrame(basex)
y=basey
plt.scatter(x.iloc[:,0],x.iloc[:,1],c=y,s=15)
plt.scatter(0.25,0.2,c=x,marker='x',s=100)

What's the issue?

0 Answers
Related