safe vars to pickle code example
Example: how to save python variables locally
with open('train.pickle', 'wb') as f:
pickle.dump([X_train, y_train], f)
with open('train.pickle', 'wb') as f:
pickle.dump([X_train, y_train], f)