XlsxWriter is a Python module for creating Excel XLSX files. That means, the module will work with Excel 2007 and later. And unlike some other Python libraries and modules such as xlwings and win32com that only work on Windows, XlsxWriter is compatible with Mac OS and Linux as well.

From the last tutorial, we learned how to create a simple table with XlsxWriter. In this tutorial we will learning how to format cells.

Python Script