title: How to resample an array in python
body: <p>I am new in python and I have a question about array/matrix.
  Below is the matrix I got.</p>
  <p>A =</p>
  <blockquote>
  <p>[[85 77 83 ..., 59 58 59]</p>
  <p>[80 83 80 ..., 57 60 58]</p>
  <p>[75 76 81 ..., 59 58 60]]</p>
  </blockquote>
  <p>I want to re-sample(I don't know if this is the right word) the matrix so it becomes</p>
  <p>B =</p>
  <blockquote>
  <p>[[ 85 85 85 85 77 77 77 77 83 83 83 83 ....... 59 59 59 59 58 58 58 58 59 59 59 59]</p>
  <p>[ 85 85 85 85 77 77 77 77 83 83 83 83 ....... 59 59 59 59 58 58 58 58 59 59 59 59]</p>
  <p>[ 85 85 85 85 77 77 77 77 83 83 83 83 ....... 59 59 59 59 58 58 58 58 59 59 59 59]</p>
  <p>[ 85 85 85 85 77 77 77 77 83 83 83 83 ....... 59 59 59 59 58 58 58 58 59 59 59 59]</p>
  <p>[ 80 80 80 80 83 83 83 83 80 80 80 80 ....... 57 57 57 57 60 60 60 60 58 58 58 58]</p>
  <p>[ 80 80 80 80 83 83 83 83 80 80 80 80 ....... 57 57 57 57 60 60 60 60 58 58 58 58]</p>
  <p>[ 80 80 80 80 83 83 83 83 80 80 80 80 ....... 57 57 57 57 60 60 60 60 58 58 58 58]</p>
  <p>[ 80 80 80 80 83 83 83 83 80 80 80 80 ....... 57 57 57 57 60 60 60 60 58 58 58 58]</p>
  <p>[ 75 75 75 75 76 76 76 76 81 81 81 81 ....... 59 59 59 59 58 58 58 58 60 60 60 60]</p>
  <p>[ 75 75 75 75 76 76 76 76 81 81 81 81 ....... 59 59 59 59 58 58 58 58 60 60 60 60]</p>
  <p>[ 75 75 75 75 76 76 76 76 81 81 81 81 ....... 59 59 59 59 58 58 58 58 60 60 60 60]]</p>
  </blockquote>
  <p>I searched online and looked at many posts, but still I have no clue how to do this.
  So please teach me how to do this, and I am greatly appreciated.</p>