daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. excel_file = 'myfile.xlsx'
  2. writer = pd.ExcelWriter(excel_file, engine='xlsxwriter')
  3. df.to_excel(writer, sheet_name='main')
  4. df.count().to_excel(writer, sheet_name='counts')
  5. writer.save()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top