Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- from datetime import datetime
- currentDay = datetime.now().day
- currentMonth = datetime.now().month
- currentYear = datetime.now().year
- e ='%s.%s.%s'%(currentDay,currentMonth,currentYear)
- file_name = 'auto.bg'
- writer = pd.ExcelWriter(f'{file_name}{e}.xlsx', engine='openpyxl')
- df_diesel.to_excel(writer, sheet_name='Diesel engines')
- df_gasoline.to_excel(writer, sheet_name='Gasoline engines')
- df_electric.to_excel(writer, sheet_name='Electric engines')
- df_hybrid.to_excel(writer, sheet_name='Hybrid engines')
- writer.save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement