Skip to content

Commit

Permalink
Specify openpyxl as engine for .xlsx io operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Jun 8, 2022
1 parent abdbfdb commit 99abb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ramp/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def add_user(self, user):
def save(self, filename=None):
answer = pd.concat([user.save() for user in self.users], ignore_index=True)
if filename is not None:
answer.to_excel(f"{filename}.xlsx", index=False)
answer.to_excel(f"{filename}.xlsx", index=False, engine="openpyxl")
else:
return answer

Expand Down Expand Up @@ -133,7 +133,7 @@ def add_appliance(self, *args, **kwargs):
def save(self, filename=None):
answer = pd.concat([app.save() for app in self.App_list], ignore_index=True)
if filename is not None:
answer.to_excel(f"{filename}.xlsx")
answer.to_excel(f"{filename}.xlsx", engine="openpyxl")
else:
return answer

Expand Down

0 comments on commit 99abb79

Please sign in to comment.