title: Why won't numpy matrix let me print its rows?
body: <p>Okay this is probably a really dumb question, however it's really starting to hurt. I  have a numpy matrix, and basically I print it out row by row. However I want to make each row be formatted and separated properly. </p>
  
  <pre><code>&gt;&gt;&gt; arr = numpy.matrix([[x for x in range(5)] for y in range(5)])
  &gt;&gt;&gt; arr
  matrix([[0, 1, 2, 3, 4],
          [0, 1, 2, 3, 4],
          [0, 1, 2, 3, 4],
          [0, 1, 2, 3, 4],
          [0, 1, 2, 3, 4]])
  </code></pre>
  
  <p>Lets say i want to print the first row, and add a '|' between each element:</p>
  
  <pre><code>&gt;&gt;&gt; '|'.join(map(str, arr[0,]))
  '[[0 1 2 3 4]]'
  </code></pre>
  
  <p>Err... </p>
  
  <pre><code>&gt;&gt;&gt; '|'.join(map(lambda x: str(x[0]), arr[0]))
  '[[0 1 2 3 4]]'
  </code></pre>
  
  <p>I am really confused by this behavior why does it do this?</p>