What is the easiest way to expand and populate a python numpy array? Initially the numpy array is:
[[1,3], [1,2], [1,5]]
after expanding, the array should be:
[[1,3,9,27], [1,2,4,8], [1,5,25,125]]
the newly added column is the squared and cubed value of the 2nd column.
Thanks!