python - How to turn array of vectors into dataframe? - Stack ...
stackoverflow.com › questions › 48454484Jan 26, 2018 · This answer is not useful. Show activity on this post. The easiest way is probably to use a dict for the constructor: In [17]: data = [array ( [2, 1, 4, 1]), array ( [2, 4, 4, 2]), array ( [2, 2, 4, 0])] In [18]: pd.DataFrame ( {'4x1 Vectors':data}) Out [18]: 4x1 Vectors 0 [2, 1, 4, 1] 1 [2, 4, 4, 2] 2 [2, 2, 4, 0] Note, pandas is not designed ...