Skip to content

Commit 57f4441

Browse files
author
jpaten
committed
fix: made argument names consistent (#4331)
1 parent b6b9cfd commit 57f4441

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

analytics/analytics_package/analytics/sheets_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def fill_worksheet_with_df(
281281
if "Sheet1" in [i.title for i in sheet.worksheets()]:
282282
sheet.del_worksheet(sheet.worksheet("Sheet1"))
283283

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={}):
285285
"""
286286
Fill a sheet with the contents of a dictionary of DataFrames.
287287
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
290290
:param sheet: the gspread.Spreadsheet object
291291
:param df_dict: the dictionary of DataFrames to fill the worksheets with
292292
: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.
294294
Should be a 2 level dictionary with outer keys being names of worksheets and inner keys being some of
295295
"bold_header", "center_header", "freeze_header", and "column_widths", optional
296296
: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
307307
for worksheet_name, df in df_dict.items():
308308
fill_worksheet_with_df(
309309
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),
311311
column_formatting_options=column_formatting_options.get(worksheet_name, {})
312312
)

0 commit comments

Comments
 (0)