title: getting square and cube of numpy and appending it
body: <p>I have a numpy array like below :-</p>
  
  <pre><code>array([[2],
         [3],
         [4],
         [5]])
  </code></pre>
  
  <p>I want to square and cube each element and then append it in numpy.
  and i want the output like below </p>
  
  <pre><code>array([[2, 4, 8],
         [3, 9, 27],
         [4, 16, 64],
         [5, 25, 125]])
  </code></pre>