No module named xlsxwriter error while writing pandas df to excel
Install the missing module xlsxwriter
manually by running
pip install xlsxwriter
After the module is installed properly, you do not need to import in manually since it will be imported as an dependency of pandas
.
Remark: Summarizing the answer from the comments given below the question as discussed here and here