Just want to know how to create a variable for underlining text in the package xlsxwriter. For example, this is the one I created for making it bold:
bold_format = workbook.add_format({'bold': True})
Sorry if the answer is blatantly obvious, I tried looking it up to no avail.
you can try below mentioned code to achieve underline
underline_format = workbook.add_format({'underline': True})
in addition you can check this link for more formatting options