@@ -281,7 +281,7 @@ def fill_worksheet_with_df(
281
281
if "Sheet1" in [i .title for i in sheet .worksheets ()]:
282
282
sheet .del_worksheet (sheet .worksheet ("Sheet1" ))
283
283
284
- def fill_spreadsheet_with_df_dict (sheet , df_dict , overlapBehavior , base_formatting_options = {}, column_formatting_options = {}):
284
+ def fill_spreadsheet_with_df_dict (sheet , df_dict , overlapBehavior , sheet_formatting_options = {}, column_formatting_options = {}):
285
285
"""
286
286
Fill a sheet with the contents of a dictionary of DataFrames.
287
287
The keys of the dictionary are the names of the worksheets, and the values contain the data to be placed in the sheet.
@@ -290,7 +290,7 @@ def fill_spreadsheet_with_df_dict(sheet, df_dict, overlapBehavior, base_formatti
290
290
:param sheet: the gspread.Spreadsheet object
291
291
:param df_dict: the dictionary of DataFrames to fill the worksheets with
292
292
:param overlapBehavior: the behavior to take if any of the worksheets already exist
293
- :param base_formatting_options : the formatting options for the worksheets.
293
+ :param sheet_formatting_options : the formatting options for the worksheets.
294
294
Should be a 2 level dictionary with outer keys being names of worksheets and inner keys being some of
295
295
"bold_header", "center_header", "freeze_header", and "column_widths", optional
296
296
:param column_formatting_options: the column formatting options for the worksheets.
@@ -307,6 +307,6 @@ def fill_spreadsheet_with_df_dict(sheet, df_dict, overlapBehavior, base_formatti
307
307
for worksheet_name , df in df_dict .items ():
308
308
fill_worksheet_with_df (
309
309
sheet , df , worksheet_name , overlapBehavior ,
310
- sheet_formatting_options = base_formatting_options .get (worksheet_name , {} ),
310
+ sheet_formatting_options = sheet_formatting_options .get (worksheet_name , DEFAULT_SHEET_FORMATTING_OPTIONS ),
311
311
column_formatting_options = column_formatting_options .get (worksheet_name , {})
312
312
)
0 commit comments