text_plain_output_1.png
import numpy as np # linear algebra

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

data = pd.read_csv('../input/mushrooms.csv')

print(data.shape)
data = np.array(data)
train, test = (data[0:8000,], data[8000:,])
Xtrain, ytrain = (train[:, 0:-1], train[:, -1])
Xtest, ytest = (test[:, 0:-1], test[:, -1])
print(Xtrain.shape)
print(ytrain.shape)
print(Xtest.shape)
print(ytest.shape)