Python Forum

Full Version: I am having a big issue in XlsxWriter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
import xlsxwriter
workbook = xlsxwriter.Workbook('stat.xlsx')
worksheet = workbook.add_worksheet()
worksheet.write('A1','country')
worksheet.write('B1','population')
worksheet.write('A2','india')
worksheet.write('B2','100000000000')
worksheet.write('A3','china')
worksheet.write('B3','2000000000000')
workbook.close()
when I give this commands, it doesn't show any errors, but it does not opens any excel file...
pl help me to overcome this issue
I don't know xlsxwriter, but does it create a file stat.xlsx in the working directory where you started the program ?
thanks friend, but I solved the problem
Please share answer with forum