title: export table to csv keeping format python
body: <p>I have a dataframe grouped by 3 variables. It looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/q8W0y.png" rel="nofollow noreferrer">https://i.stack.imgur.com/q8W0y.png</a></p>
  
  <p>When I export the table to csv, the format changes. I want to keep the original
  Any ideas? </p>
  
  <p>Thanks!</p>