title: Pandas: Write dataframe containing strings to xlsx with multiline format
body: <pre><code>df=pd.DataFrame(['abc\n123\n232','1\n2\n3\n4\n5\n6'])
  df.to_csv('text.csv')
  </code></pre>
  
  <p>I would like to have in a single cell in the xlsx (Edited: not csv):</p>
  
  <pre><code>abc
  123
  232
  </code></pre>
  
  <p>The desired output is A1 cell <strong>only</strong> being filled.</p>
  
  <p>The dataframe has only 1 cell.
  But the above code would result in the xlsx (Edited: not csv) printing that 1 cell into multiple cells.
  Is there a way to format and write the xlsx (Edited: not csv) into <strong>multilines</strong> <em>within</em> <strong><em>each</em> cell</strong>?</p>
  
  <p>Edit:
  I shall clarify my problem. There is nothing wrong with my dataframe definition. I would like the "\n" within the strings in each cell of the dataframe to become a line break within the xlsx (Edited: not csv) cell. this is another example.</p>
  
  <pre><code>df=pd.DataFrame(['abc\n123\n232','1\n2\n3\n4\n5\n6'])
  df.to_csv('text.csv')
  </code></pre>
  
  <p>The desired output is A1 and A2 cells <strong>only</strong> being filled.</p>
  
  <p>Edit 2:
  Not in csv but <strong>xlsx</strong>.</p>