Hi,

I am trying to write the pandas dataframe to excel but it shows following
error:

Error:
from openpyxl.workbook import Workbook
ImportError: No module named openpyxl.workbook

I am using only pandas however it still works fine on one computer having
openpyxl already installed eventhough i am not using openpyxl in the
program while shows above error on other computer where openpyxl is not
installed.

both computers are running on the same python version.

my code below:

import pandas as pd
writer = pd.ExcelWriter('summary.xlsx')
df.to_excel(writer, index=False)
writer.save()

any help appreciated.

Thank you,
Paresh
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to