text_plain_output_1.png
import matplotlib.pyplot as plt

import seaborn as sns

review_len_train = []
review_len_test = []
for i, ii in zip(x_train, x_test):
    review_len_train.append(len(i))
    review_len_test.append(len(ii))

sns.distplot(review_len_train, hist_kws={'alpha': 0.3})
sns.distplot(review_len_test, hist_kws={'alpha': 0.3})
plt.show()