title: Unsupported type <(class 'pandas.core.frame.DateFrame'> in write()
body: <p>I am trying to output 2 columns to an excel sheet with the below code and got an syntax error. How to fix this? Thanks.</p>
  <pre><code>import xlsxwriter
  import pandas as pd
  
  workbook=xlsxwriter.Workbook('file.xlsx')
  worksheet=workbook.add_worksheet('sheet1')
  
  df=pd.DataFrame({'A':[1,2,3],'B':[4,5,6]},columns=['A','B'])
  col=['A','B']
  df[col]
  text_format = workbook.add_format({ 'align': 'left', 'fg_color': 'blue', 'bold':True})
  
  worksheet.write(7,5,df[col],text_format)
  workbook.save() 
  </code></pre>