bu hatanın sebebi ne acaba?
kodlar bu şekilde:
import pandas as pd
data = pd.read_csv('Wine.csv')
sinif = data.iloc[:,0:1]
ozellik=data.iloc[:,1:]
from sklearn.model_selection import train_test_split
x_train, x_test, y_train, y_test = train_test_split(ozellik,sinif,test_size=0.33,random_state=0)
from sklearn.naive_bayes import GaussianNB
gnb = GaussianNB()
gnb.fit(x_train, y_train)#tek boyutlu diziye çevirir
result = gnb.predict(x_test)
#from sklearn.metrics import confusion_matrix
#cm = confusion_matrix(y_test,result)
#print(cm)
from sklearn.metrics import accuracy_score
accuracy = accuracy_score(y_test, result)
print(accuracy)