From 3fd32a2f8f832d41f2bf4be32679255b1c4da3d9 Mon Sep 17 00:00:00 2001 From: michaelhofrichter <45667758+michaelhofrichter@users.noreply.github.com> Date: Mon, 7 Aug 2023 23:24:14 -0500 Subject: [PATCH] Update util.py for Pandas 2.0.3 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. --- docassemble_base/docassemble/base/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docassemble_base/docassemble/base/util.py b/docassemble_base/docassemble/base/util.py index 7d7225a80..92f0519c3 100644 --- a/docassemble_base/docassemble/base/util.py +++ b/docassemble_base/docassemble/base/util.py @@ -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':