Skip to content

Commit

Permalink
Update util.py for Pandas 2.0.3
Browse files Browse the repository at this point in the history
Fixing the Pandas error that I found in creating a table. Based on the documentation, this looks to be right, but I wasn't able to rebuild it and test locally since I'm on a Mac.
  • Loading branch information
michaelhofrichter authored Aug 8, 2023
1 parent 8ec86b4 commit 3fd32a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docassemble_base/docassemble/base/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5607,7 +5607,7 @@ def export(self, filename=None, file_format=None, title=None, freeze_panes=True,
freeze_panes = None
writer = pandas.ExcelWriter(output_to.path(), # pylint: disable=abstract-class-instantiated
engine='xlsxwriter',
options={'remove_timezone': True})
engine_kwargs={'remove_timezone': True})
df.to_excel(writer, sheet_name=title, index=False, freeze_panes=freeze_panes)
writer.save()
elif file_format == 'csv':
Expand Down

0 comments on commit 3fd32a2

Please sign in to comment.