I am having trouble aligning the columns of an Excel Worksheet using xlsxWriter. For further clarity here is the data-frame
Name Employee ID Year
John Miller 2014108 2014
Sarah Jones 2011548 2011
Jake Kenedy 2010546 2010
I am trying to align the Name column so that the values are on the left instead of being centred
I tried this
workbook = writer.book
cell_format = workbook.add_format()
cell_format.set_align('left')
However, nothing happened. Any suggestions would be greatly appreciated.