title: Pretty printing newlines inside a string in a Pandas DataFrame
body: <p>I have a Pandas DataFrame in which one of the columns contains string elements, and those string elements contain new lines that I would like to print literally. But they just appear as <code>\n</code> in the output.</p>
  
  <p>That is, I want to print this:</p>
  
  <pre><code>  pos     bidder
  0   1
  1   2
  2   3  &lt;- alice
         &lt;- bob
  3   4
  </code></pre>
  
  <p>but this is what I get:</p>
  
  <pre><code>  pos            bidder
  0   1
  1   2
  2   3  &lt;- alice\n&lt;- bob
  3   4
  </code></pre>
  
  <p>How can I accomplish what I want? Can I use a DataFrame, or will I have to revert to manually printing padded columns one row at a time?</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>n = 4
  output = pd.DataFrame({
      'pos': range(1, n+1),
      'bidder': [''] * n
  })
  bids = {'alice': 3, 'bob': 3}
  used_pos = []
  for bidder, pos in bids.items():
      if pos in used_pos:
          arrow = output.ix[pos, 'bidder']
          output.ix[pos, 'bidder'] = arrow + "\n&lt;- %s" % bidder
      else:
          output.ix[pos, 'bidder'] = "&lt;- %s" % bidder
  print(output)
  </code></pre>