Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import pandas as pd
from keras.utils import np_utils
data = pd.read_csv('data.csv', header = 0)
X = data.iloc[:, :-1]
y = data.iloc[:, -1]
y_categorical = np_utils.to_categorical(y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment