I tried to create a 2D numpy ndarray using the following code:
temp = np.array([[np.mean(w2v[word]) for word in docs if word in w2v] for docs in X[:5]])
temp has a shape of (5,) instead of expected (5,x).
Also temps's data structure is like: array([list([.....],...)])
It seems that the inner list is not converted to ndarray.