Python Write Excel xlsx File with Merged Cells using OpenPyXL In this Python openpyxl tutorial we learn how to write Excel xlsx files with merged cells using the openpyxl package.