application_vnd.jupyter.stderr_output_1.png
from sklearn.feature_extraction import DictVectorizer

from sklearn.feature_extraction import DictVectorizer
vec = DictVectorizer(sparse=False)
x_train = vec.fit_transform(x_train.to_dict(orient='record'))
x_test = vec.transform(x_test.to_dict(orient='record'))
vec.get_feature_names()