image_output_1.png
from sklearn.preprocessing import StandardScaler

from sklearn.svm import SVC

X_train = X_sample.iloc[:, :-1].values
y_train = X_sample.iloc[:, -1].values
X_test = y_sample.iloc[:, :-1].values
y_test = y_sample.iloc[:, -1].values

(X_train.shape, X_test.shape, y_train.shape, y_test.shape)

from sklearn.preprocessing import StandardScaler
sc = StandardScaler()
X_train = sc.fit_transform(X_train)
X_test = sc.transform(X_test)

from sklearn.svm import SVC
svm = SVC()
svm.fit(X_train, y_train)