NLP, Python, Scikit Learn.
X['word_vector'].to_numpy().flatten()]) print(word_vector_length[:5]) # [760, 157, 7566, 2543, 2086] bins=int(np.max(word_vector_length)/1000) plt.hist(x=word_vector_length, bins=bins, density=False) plt.show() print(f'Mean: {word_vector_length.mean()}') # Mean: 2248.904411764706 The histogram