title: How to rotate square numpy array of 2 dimensional by 45 degree in python?
body: <p>I have a numpy array of images. The dimension is 2 and the shape is (100,100). I want to augment more data as I have only 52 set of numpy array. I want to rotate the given array by 45 degree. What should I do for that??</p>
  
  <p>Suppose the array be like</p>
  
  <pre><code>a=[[ 0  1  2  3  4]
   [ 5  6  7  8  9]
   [10 11 12 13 14]
   [15 16 17 18 19]
   [20 21 22 23 24]]
  </code></pre>
  
  <p>Please rotate the given array by 45 degree.</p>