Search code examples
excelpandasdataframeexport-to-excel

Not being able to write a data frame to a excel sheet


This is the error message i am getting .Even on trying the code given by my tutor and online i tried fixing but ended up being not able to fix the problem


Solution

  • You're requesting Pandas to use the xlsxwriter engine to write your XLSX file. The error says

    ModuleNotFoundError: No module named 'xlsxwriter'

    To use the xlsxwriter engine, you'll need to install the xlsxwriter module.

    Usually, that's done with pip install xlsxwriter.