title: Python How to use DataFrame output in email body as Text
body: <p>I have a output of a dataframe  Df , I am able to send it in mail as an attachment, but not able to print Df value in message body. Please advise to print my Df value in email body so I won't have to add attachment.</p>
  <pre><code>import win32com.client as win32
  
  outlook = win32.Dispatch('outlook.application')
  mail = outlook.CreateItem(0)
  mail.To = 'abc@xyg.com'
  mail.Subject = 'Madsaage Subject'
  mail.Body = 'print(Df)'
  mail.HTMLBody = 'Please  Find Attached'  # This field is optional
  # To attach a file to the email (optional):
  mail.Attachments.Add('C:/XYZ/transport.csv')
  mail.Send()
  </code></pre>