How do i convert a numpy array to a pandas dataframe?
for example:
test = np.array([[1,2],[2,3]])
test2 = np.array([[2,4],[2,5]])
to this:
pd.DataFrame({'test':[[1,2],[2,3]],
'test2':[[2,4],[2,5]]})
test test2
0 [1, 2] [2, 4]
1 [2, 3] [2, 5]
sum(),diff(), etc.