Skip to content

Commit

Permalink
Update xlsxwriter function arguments
Browse files Browse the repository at this point in the history
So that it is compatible with the more recent version of the
xlsxwriter package.
  • Loading branch information
aranyavenkatesh committed Jun 23, 2022
1 parent 7bbb935 commit 4bae04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_processing/DB_to_Excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def make_excel(ifile, ofile, scenario):
cur = con.cursor() # a database cursor is a control structure that enables traversal over the records in a database
con.text_factory = str #this ensures data is explored with the correct UTF-8 encoding
scenario = scenario.pop()
writer = pd.ExcelWriter(ofile+'.xlsx', engine = 'xlsxwriter', engine_kwargs = {'options':{'strings_to_formulas': False}})
writer = pd.ExcelWriter(ofile+'.xlsx', engine = 'xlsxwriter', options={'strings_to_formulas': False})

workbook = writer.book

Expand Down

0 comments on commit 4bae04d

Please sign in to comment.